本文整理了Java中okhttp3.ConnectionPool.get()
方法的一些代码示例,展示了ConnectionPool.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConnectionPool.get()
方法的具体详情如下:
包路径:okhttp3.ConnectionPool
类名称:ConnectionPool
方法名:get
[英]Returns a recycled connection to address, or null if no such connection exists. The route is null if the address has not yet been routed.
[中]返回到地址的循环连接,如果不存在此类连接,则返回null。如果地址尚未路由,则路由为空。
代码示例来源:origin: duzechao/OKHttpUtils
@Override public RealConnection get(
ConnectionPool pool, Address address, StreamAllocation streamAllocation) {
return pool.get(address, streamAllocation);
}
代码示例来源:origin: huxq17/SwipeCardsView
@Override public RealConnection get(
ConnectionPool pool, Address address, StreamAllocation streamAllocation) {
return pool.get(address, streamAllocation);
}
代码示例来源:origin: com.github.ljun20160606/okhttp
@Override public RealConnection get(ConnectionPool pool, Address address,
StreamAllocation streamAllocation, Route route) {
return pool.get(address, streamAllocation, route);
}
代码示例来源:origin: huxq17/tractor
@Override public RealConnection get(
ConnectionPool pool, Address address, StreamAllocation streamAllocation) {
return pool.get(address, streamAllocation);
}
代码示例来源:origin: apache/servicemix-bundles
@Override public RealConnection get(ConnectionPool pool, Address address,
StreamAllocation streamAllocation, Route route) {
return pool.get(address, streamAllocation, route);
}
内容来源于网络,如有侵权,请联系作者删除!