Class 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 Detail

      • SdkConnectionKeepAliveStrategy

        public SdkConnectionKeepAliveStrategy​(long maxIdleTime)
        Parameters:
        maxIdleTime - the maximum time a connection may be idle
    • Method Detail

      • getKeepAliveDuration

        public long getKeepAliveDuration​(org.apache.http.HttpResponse response,
                                         org.apache.http.protocol.HttpContext context)
        Specified by:
        getKeepAliveDuration in interface org.apache.http.conn.ConnectionKeepAliveStrategy