Class SdkConnectionKeepAliveStrategy
- java.lang.Object
-
- software.amazon.awssdk.http.apache5.internal.conn.SdkConnectionKeepAliveStrategy
-
- All Implemented Interfaces:
org.apache.hc.client5.http.ConnectionKeepAliveStrategy
@SdkInternalApi public class SdkConnectionKeepAliveStrategy extends Object implements org.apache.hc.client5.http.ConnectionKeepAliveStrategy
The AWS SDK for Java's implementation of theConnectionKeepAliveStrategyinterface. Allows a user-configurable maximum idle time for connections.
-
-
Constructor Summary
Constructors Constructor Description SdkConnectionKeepAliveStrategy(long maxIdleTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hc.core5.util.TimeValuegetKeepAliveDuration(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context)
-
-
-
Method Detail
-
getKeepAliveDuration
public org.apache.hc.core5.util.TimeValue getKeepAliveDuration(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context)- Specified by:
getKeepAliveDurationin interfaceorg.apache.hc.client5.http.ConnectionKeepAliveStrategy
-
-