Home
last modified time | relevance | path

Searched refs:ConnectionPool (Results 1 – 16 of 16) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DConnectionPoolTest.java48 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); in connectionsEvictedWhenIdleLongEnough()
80 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); in inUseConnectionsNotEvicted()
104 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); in cleanupPrioritizesEarliestEviction()
136 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); in oldestConnectionsEvictedIfIdleLimitExceeded()
160 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); in leakedAllocation()
174 private void allocateAndLeakAllocation(ConnectionPool pool, RealConnection connection) { in allocateAndLeakAllocation()
190 private RealConnection newConnection(ConnectionPool pool, Route route, long idleAtNanos) { in newConnection()
DConnectionReuseTest.java104 client.setConnectionPool(new ConnectionPool(0, 5000)); in connectionsAreNotReusedIfPoolIsSizeZero()
115 client.setConnectionPool(new ConnectionPool(0, 5000)); in connectionsReusedWithRedirectEvenIfPoolIsSizeZero()
132 client.setConnectionPool(new ConnectionPool(0, 5000)); in connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow()
209 client.setConnectionPool(new ConnectionPool(5, 250, TimeUnit.MILLISECONDS)); in connectionsAreEvicted()
DCacheTest.java1024 ConnectionPool pool = ConnectionPool.getDefault(); in conditionalCacheHitIsNotDoublePooled()
DURLConnectionTest.java1290 ConnectionPool pool = ConnectionPool.getDefault(); in endOfStreamResponseIsNotPooled()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnectionPool.java58 public final class ConnectionPool { class
61 private static final ConnectionPool systemDefault;
71 systemDefault = new ConnectionPool(0, keepAliveDurationMs);
73 systemDefault = new ConnectionPool(Integer.parseInt(maxIdleConnections), keepAliveDurationMs);
75 systemDefault = new ConnectionPool(5, keepAliveDurationMs);
99 synchronized (ConnectionPool.this) {
101 ConnectionPool.this.wait(waitMillis, (int) waitNanos);
113 public ConnectionPool(int maxIdleConnections, long keepAliveDurationMs) { in ConnectionPool() method in ConnectionPool
117 public ConnectionPool(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit) { in ConnectionPool() method in ConnectionPool
127 public static ConnectionPool getDefault() { in getDefault()
DOkHttpClient.java79 ConnectionPool pool, RealConnection connection) {
84 ConnectionPool pool, Address address, StreamAllocation streamAllocation) {
88 @Override public void put(ConnectionPool pool, RealConnection connection) {
92 @Override public RouteDatabase routeDatabase(ConnectionPool connectionPool) {
139 private ConnectionPool connectionPool;
405 public OkHttpClient setConnectionPool(ConnectionPool connectionPool) { in setConnectionPool()
410 public ConnectionPool getConnectionPool() { in getConnectionPool()
603 result.connectionPool = ConnectionPool.getDefault(); in copyWithDefaults()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DInternal.java21 import com.squareup.okhttp.ConnectionPool;
57 ConnectionPool pool, Address address, StreamAllocation streamAllocation); in get()
59 public abstract void put(ConnectionPool pool, RealConnection connection); in put()
61 public abstract boolean connectionBecameIdle(ConnectionPool pool, RealConnection connection); in connectionBecameIdle()
63 public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool); in routeDatabase()
/external/okhttp/android/main/java/com/squareup/okhttp/
DConfigAwareConnectionPool.java60 private ConnectionPool connectionPool;
78 public synchronized ConnectionPool get() { in get()
95 connectionPool = new ConnectionPool( in get()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DStreamAllocation.java19 import com.squareup.okhttp.ConnectionPool;
77 private final ConnectionPool connectionPool;
86 public StreamAllocation(ConnectionPool connectionPool, Address address) { in StreamAllocation()
/external/okhttp/android/test/java/com/squareup/okhttp/
DConfigAwareConnectionPoolTest.java43 ConnectionPool beforeEventInstance = instance.get(); in get()
/external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
DMain.java19 import com.squareup.okhttp.ConnectionPool;
186 client.setConnectionPool(ConnectionPool.getDefault()); in createClient()
/external/okhttp/
DREADME.android13 ConnectionPool that listens for network configuration changes.
/external/autotest/server/hosts/
Dssh_multiplex.py128 class ConnectionPool(object): class
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java19 import com.squareup.okhttp.ConnectionPool;
398 ConnectionPool connectionPool = new ConnectionPool(5, 5000); in disconnectWithStreamNotEstablished()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java852 ConnectionPool pool = ConnectionPool.getDefault(); in conditionalCacheHitIsNotDoublePooled()
/external/autotest/server/
Dserver_job.py349 self._connection_pool = ssh_multiplex.ConnectionPool()