| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultConnectionKeepAliveStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | getKeepAliveDuration(final HttpResponse
The last response received over the connection. response, final HttpContext the context in which the connection is being used. context)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final DefaultConnectionKeepAliveStrategy INSTANCE | |
| DefaultConnectionKeepAliveStrategy | back to summary |
|---|---|
| public DefaultConnectionKeepAliveStrategy() | |
| getKeepAliveDuration | back to summary |
|---|---|
| public long getKeepAliveDuration(final HttpResponse response, final HttpContext context) Implements org. Doc from org. Returns the duration of time which this connection can be safely kept
idle. If the connection is left idle for longer than this period of time,
it MUST not reused. A value of 0 or less may be returned to indicate that
there is no suitable suggestion.
When coupled with a
| |