Class SdkConnectionKeepAliveStrategy
java.lang.Object
software.amazon.awssdk.http.apache.internal.conn.SdkConnectionKeepAliveStrategy
- All Implemented Interfaces:
org.apache.http.conn.ConnectionKeepAliveStrategy
public class SdkConnectionKeepAliveStrategy
extends Object
implements org.apache.http.conn.ConnectionKeepAliveStrategy
The AWS SDK for Java's implementation of the
ConnectionKeepAliveStrategy
interface. Allows a user-configurable
maximum idle time for connections.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getKeepAliveDuration
(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
-
Constructor Details
-
SdkConnectionKeepAliveStrategy
public SdkConnectionKeepAliveStrategy(long maxIdleTime) - Parameters:
maxIdleTime
- the maximum time a connection may be idle
-
-
Method Details
-
getKeepAliveDuration
public long getKeepAliveDuration(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) - Specified by:
getKeepAliveDuration
in interfaceorg.apache.http.conn.ConnectionKeepAliveStrategy
-