| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal | |
| com.squareup.okhttp.internal.http | |
| com.squareup.okhttp.internal.io |
| Modifier and Type | Method and Description |
|---|---|
Route |
Connection.getRoute()
Returns the route used by this connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RouteDatabase.connected(Route route)
Records success connecting to
failedRoute. |
void |
RouteDatabase.failed(Route failedRoute)
Records a failure connecting to
failedRoute. |
boolean |
RouteDatabase.shouldPostpone(Route route)
Returns true if
route has failed recently and should be avoided. |
| Modifier and Type | Method and Description |
|---|---|
Route |
RouteSelector.next() |
| Modifier and Type | Method and Description |
|---|---|
void |
RouteSelector.connectFailed(Route failedRoute,
IOException failure)
Clients should invoke this method when they encounter a connectivity
failure on a connection returned by this route selector.
|
| Modifier and Type | Method and Description |
|---|---|
Route |
RealConnection.getRoute() |
| Constructor and Description |
|---|
RealConnection(Route route) |
Copyright © 2017. All Rights Reserved.