public class SdkConnectionKeepAliveStrategy
extends java.lang.Object
implements org.apache.http.conn.ConnectionKeepAliveStrategy
ConnectionKeepAliveStrategy
interface. Allows a user-configurable
maximum idle time for connections.Modifier and Type | Field and Description |
---|---|
private long |
maxIdleTime |
Constructor and Description |
---|
SdkConnectionKeepAliveStrategy(long maxIdleTime) |
Modifier and Type | Method and Description |
---|---|
long |
getKeepAliveDuration(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |