| Package | Description |
|---|---|
| org.aoju.bus.http | |
| org.aoju.bus.http.accord | |
| org.aoju.bus.http.metric.http |
| Modifier and Type | Method and Description |
|---|---|
abstract RealConnection |
Builder.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
Builder.connectionBecameIdle(ConnectionPool pool,
RealConnection connection) |
abstract void |
Builder.put(ConnectionPool pool,
RealConnection connection) |
| Modifier and Type | Field and Description |
|---|---|
Deque<RealConnection> |
ConnectionPool.connections |
| Modifier and Type | Method and Description |
|---|---|
RealConnection |
StreamAllocation.connection() |
RealConnection |
ConnectionPool.get(Address address,
StreamAllocation streamAllocation,
Route route)
返回一个循环连接到
address,如果不存在这样的连接,
则返回null。如果地址尚未被路由,则路由为空. |
static RealConnection |
RealConnection.testConnection(ConnectionPool connectionPool,
Route route,
Socket socket,
long idleAtNanos) |
| Modifier and Type | Method and Description |
|---|---|
void |
StreamAllocation.acquire(RealConnection connection,
boolean reportedAcquired)
使用这个分配来保存
connection。每个对它的调用必须与
对同一连接上的StreamAllocation.release()的调用配对 |
boolean |
ConnectionPool.connectionBecameIdle(RealConnection connection)
通知这个池
connection已经空闲。如果连接已从池中删除,并且应该关闭,则返回true。 |
void |
ConnectionPool.put(RealConnection connection) |
Socket |
StreamAllocation.releaseAndAcquire(RealConnection newConnection)
释放该连接持有的连接,并获取
newConnection。只有在持有的
连接是新连接,但是被newConnection复制时,调用它才是安全
的。通常在并发连接到HTTP/2 webserver时发生这种情况
返回一个关闭选项,调用者应该在同步块完成*时将其传递给IoUtils.close(Socket) |
| Modifier and Type | Method and Description |
|---|---|
Response |
RealInterceptorChain.proceed(Request request,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection) |
| Constructor and Description |
|---|
RealInterceptorChain(List<Interceptor> interceptors,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection,
int index,
Request request,
NewCall call,
EventListener eventListener,
int connectTimeout,
int readTimeout,
int writeTimeout) |
Copyright © 2019. All rights reserved.