okhttp3.ConnectionPool.connectionBecameIdle()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(184)

本文整理了Java中okhttp3.ConnectionPool.connectionBecameIdle()方法的一些代码示例,展示了ConnectionPool.connectionBecameIdle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConnectionPool.connectionBecameIdle()方法的具体详情如下:
包路径:okhttp3.ConnectionPool
类名称:ConnectionPool
方法名:connectionBecameIdle

ConnectionPool.connectionBecameIdle介绍

[英]Notify this pool that connection has become idle. Returns true if the connection has been removed from the pool and should be closed.
[中]通知此池连接已处于空闲状态。如果连接已从池中删除并应关闭,则返回true。

代码示例

代码示例来源:origin: square/okhttp

@Override public boolean connectionBecameIdle(
  ConnectionPool pool, RealConnection connection) {
 return pool.connectionBecameIdle(connection);
}

代码示例来源:origin: com.squareup.okhttp3/okhttp

@Override public boolean connectionBecameIdle(
  ConnectionPool pool, RealConnection connection) {
 return pool.connectionBecameIdle(connection);
}

代码示例来源:origin: huxq17/tractor

@Override public boolean connectionBecameIdle(
  ConnectionPool pool, RealConnection connection) {
 return pool.connectionBecameIdle(connection);
}

代码示例来源:origin: apache/servicemix-bundles

@Override public boolean connectionBecameIdle(
  ConnectionPool pool, RealConnection connection) {
 return pool.connectionBecameIdle(connection);
}

代码示例来源:origin: huxq17/SwipeCardsView

@Override public boolean connectionBecameIdle(
  ConnectionPool pool, RealConnection connection) {
 return pool.connectionBecameIdle(connection);
}

代码示例来源:origin: duzechao/OKHttpUtils

@Override public boolean connectionBecameIdle(
  ConnectionPool pool, RealConnection connection) {
 return pool.connectionBecameIdle(connection);
}

代码示例来源:origin: com.github.ljun20160606/okhttp

@Override public boolean connectionBecameIdle(
  ConnectionPool pool, RealConnection connection) {
 return pool.connectionBecameIdle(connection);
}

相关文章