Home
last modified time | relevance | path

Searched refs:connectionPool (Results 1 – 13 of 13) sorted by relevance

/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DStreamAllocation.java79 private final ConnectionPool connectionPool; field in StreamAllocation
88 public StreamAllocation(ConnectionPool connectionPool, Address address) { in StreamAllocation() argument
89 this.connectionPool = connectionPool; in StreamAllocation()
110 synchronized (connectionPool) { in newStream()
132 synchronized (connectionPool) { in findHealthyConnection()
153 synchronized (connectionPool) { in findConnection()
164 RealConnection pooledConnection = Internal.instance.get(connectionPool, address, this); in findConnection()
180 synchronized (connectionPool) { in findConnection()
181 Internal.instance.put(connectionPool, newConnection); in findConnection()
194 synchronized (connectionPool) { in streamFinished()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DStreamAllocation.java77 private final ConnectionPool connectionPool; field in StreamAllocation
86 public StreamAllocation(ConnectionPool connectionPool, Address address) { in StreamAllocation() argument
87 this.connectionPool = connectionPool; in StreamAllocation()
108 synchronized (connectionPool) { in newStream()
130 synchronized (connectionPool) { in findHealthyConnection()
151 synchronized (connectionPool) { in findConnection()
162 RealConnection pooledConnection = Internal.instance.get(connectionPool, address, this); in findConnection()
178 synchronized (connectionPool) { in findConnection()
179 Internal.instance.put(connectionPool, newConnection); in findConnection()
192 synchronized (connectionPool) { in streamFinished()
[all …]
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DThreadSafeClientConnManager.java82 protected final AbstractConnPool connectionPool; field in ThreadSafeClientConnManager
103 this.connectionPool = createConnectionPool(params); in ThreadSafeClientConnManager()
160 final PoolEntryRequest poolRequest = connectionPool.requestPoolEntry( in requestConnection()
253 connectionPool.freeEntry(entry, reusable, validDuration, timeUnit);
261 connectionPool.shutdown();
276 return ((ConnPoolByRoute)connectionPool).getConnectionsInPool(
290 synchronized (connectionPool) {
291 return connectionPool.numConnections; //@@@
299 connectionPool.closeIdleConnections(idleTimeout, tunit);
300 connectionPool.deleteClosedConnections();
[all …]
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/
DConfigAwareConnectionPool.java62 private ConnectionPool connectionPool; field in ConfigAwareConnectionPool
81 if (connectionPool == null) { in get()
91 connectionPool = null; in get()
97 connectionPool = new ConnectionPool( in get()
100 return connectionPool; in get()
/external/okhttp/android/src/main/java/com/squareup/okhttp/
DConfigAwareConnectionPool.java60 private ConnectionPool connectionPool; field in ConfigAwareConnectionPool
79 if (connectionPool == null) { in get()
89 connectionPool = null; in get()
95 connectionPool = new ConnectionPool( in get()
98 return connectionPool; in get()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpClient.java92 @Override public RouteDatabase routeDatabase(ConnectionPool connectionPool) {
93 return connectionPool.routeDatabase;
139 private ConnectionPool connectionPool; field in OkHttpClient
170 this.connectionPool = okHttpClient.connectionPool; in OkHttpClient()
405 public OkHttpClient setConnectionPool(ConnectionPool connectionPool) { in setConnectionPool() argument
406 this.connectionPool = connectionPool; in setConnectionPool()
411 return connectionPool; in getConnectionPool()
602 if (result.connectionPool == null) { in copyWithDefaults()
603 result.connectionPool = ConnectionPool.getDefault(); in copyWithDefaults()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DOkHttpClient.java95 @Override public RouteDatabase routeDatabase(ConnectionPool connectionPool) {
96 return connectionPool.routeDatabase;
143 private ConnectionPool connectionPool; field in OkHttpClient
176 this.connectionPool = okHttpClient.connectionPool; in OkHttpClient()
416 public OkHttpClient setConnectionPool(ConnectionPool connectionPool) { in setConnectionPool() argument
417 this.connectionPool = connectionPool; in setConnectionPool()
423 return connectionPool; in getConnectionPool()
616 if (result.connectionPool == null) { in copyWithDefaults()
617 result.connectionPool = ConnectionPool.getDefault(); in copyWithDefaults()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java58 private ConnectionPool connectionPool; field in HttpURLConnectionFactory
73 this.connectionPool = new ConnectionPool(maxIdleConnections, keepAliveDuration, timeUnit); in setNewConnectionPool()
142 if (connectionPool != null) { in internalOpenConnection()
143 client.setConnectionPool(connectionPool); in internalOpenConnection()
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java56 private ConnectionPool connectionPool; field in HttpURLConnectionFactory
71 this.connectionPool = new ConnectionPool(maxIdleConnections, keepAliveDuration, timeUnit); in setNewConnectionPool()
140 if (connectionPool != null) { in internalOpenConnection()
141 client.setConnectionPool(connectionPool); in internalOpenConnection()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DInternal.java63 public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool); in routeDatabase() argument
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/
DInternal.java78 public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool); in routeDatabase() argument
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java398 ConnectionPool connectionPool = new ConnectionPool(5, 5000); in disconnectWithStreamNotEstablished() local
399 client.client().setConnectionPool(connectionPool); in disconnectWithStreamNotEstablished()
409 assertEquals(1, connectionPool.getSpdyConnectionCount()); in disconnectWithStreamNotEstablished()
/external/apache-http/api/
Dcurrent.txt2971 … field @Deprecated protected final org.apache.http.impl.conn.tsccm.AbstractConnPool connectionPool;