Package | Description |
---|---|
okhttp3.internal.connection | |
okhttp3.internal.http | |
okhttp3.internal.http1 | |
okhttp3.internal.http2 |
Modifier and Type | Field and Description |
---|---|
private RealConnection |
ExchangeFinder.connectingConnection |
RealConnection |
Transmitter.connection |
Modifier and Type | Field and Description |
---|---|
private java.util.Deque<RealConnection> |
RealConnectionPool.connections |
Modifier and Type | Method and Description |
---|---|
(package private) RealConnection |
ExchangeFinder.connectingConnection() |
RealConnection |
Exchange.connection() |
private RealConnection |
ExchangeFinder.findConnection(int connectTimeout,
int readTimeout,
int writeTimeout,
int pingIntervalMillis,
boolean connectionRetryEnabled)
Returns a connection to host a new stream.
|
private RealConnection |
ExchangeFinder.findHealthyConnection(int connectTimeout,
int readTimeout,
int writeTimeout,
int pingIntervalMillis,
boolean connectionRetryEnabled,
boolean doExtensiveHealthChecks)
Finds a connection and returns it if it is healthy.
|
(package private) static RealConnection |
RealConnection.testConnection(RealConnectionPool connectionPool,
Route route,
java.net.Socket socket,
long idleAtNanos) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
Transmitter.acquireConnectionNoEvents(RealConnection connection) |
(package private) boolean |
RealConnectionPool.connectionBecameIdle(RealConnection connection)
Notify this pool that
connection has become idle. |
private int |
RealConnectionPool.pruneAndGetAllocationCount(RealConnection connection,
long now)
Prunes any leaked transmitters and then returns the number of remaining live transmitters on
connection . |
(package private) void |
RealConnectionPool.put(RealConnection connection) |
Modifier and Type | Method and Description |
---|---|
RealConnection |
ExchangeCodec.connection()
Returns the connection that carries this codec.
|
Modifier and Type | Field and Description |
---|---|
private RealConnection |
Http1ExchangeCodec.realConnection
The connection that carries this stream.
|
Modifier and Type | Method and Description |
---|---|
RealConnection |
Http1ExchangeCodec.connection() |
Constructor and Description |
---|
Http1ExchangeCodec(OkHttpClient client,
RealConnection realConnection,
okio.BufferedSource source,
okio.BufferedSink sink) |
Modifier and Type | Field and Description |
---|---|
private RealConnection |
Http2ExchangeCodec.realConnection |
Modifier and Type | Method and Description |
---|---|
RealConnection |
Http2ExchangeCodec.connection() |
Constructor and Description |
---|
Http2ExchangeCodec(OkHttpClient client,
RealConnection realConnection,
Interceptor.Chain chain,
Http2Connection connection) |