| Package | Description |
|---|---|
| org.aoju.bus.http | |
| org.aoju.bus.http.accord |
| Modifier and Type | Method and Description |
|---|---|
Address |
Route.address() |
| Modifier and Type | Method and Description |
|---|---|
abstract Socket |
Builder.deduplicate(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation) |
abstract boolean |
Builder.equalsNonHost(Address a,
Address b) |
abstract RealConnection |
Builder.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
| Constructor and Description |
|---|
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress) |
| Modifier and Type | Field and Description |
|---|---|
Address |
StreamAllocation.address |
| Modifier and Type | Method and Description |
|---|---|
Socket |
ConnectionPool.deduplicate(Address address,
StreamAllocation streamAllocation)
如果可能,将
streamAllocation持有的连接替换为共享连接。
当并发地创建多个多路连接时,这将恢复 |
RealConnection |
ConnectionPool.get(Address address,
StreamAllocation streamAllocation,
Route route)
返回一个循环连接到
address,如果不存在这样的连接,
则返回null。如果地址尚未被路由,则路由为空. |
boolean |
RealConnection.isEligible(Address address,
Route route)
如果此连接可以将流分配到
address,则返回true。如果非空route是连接的解析路由 |
| Constructor and Description |
|---|
RouteSelector(Address address,
RouteDatabase routeDatabase,
NewCall call,
EventListener eventListener) |
StreamAllocation(ConnectionPool connectionPool,
Address address,
NewCall call,
EventListener eventListener,
Object callStackTrace) |
Copyright © 2019. All rights reserved.