List of usage examples for org.apache.http.conn ConnectionKeepAliveStrategy interface-usage
From source file com.ksc.http.conn.SdkConnectionKeepAliveStrategy.java
/** * The KSC SDK for Java's implementation of the * {@code ConnectionKeepAliveStrategy} interface. Allows a user-configurable * maximum idle time for connections. */ public class SdkConnectionKeepAliveStrategy implements ConnectionKeepAliveStrategy {
From source file com.amazonaws.http.conn.SdkConnectionKeepAliveStrategy.java
/** * The AWS SDK for Java's implementation of the * {@code ConnectionKeepAliveStrategy} interface. Allows a user-configurable * maximum idle time for connections. */ public class SdkConnectionKeepAliveStrategy implements ConnectionKeepAliveStrategy {
From source file code.google.restclient.core.CustomKeepAliveStrategy.java
/** * @author Yaduvendra.Singh */ public class CustomKeepAliveStrategy implements ConnectionKeepAliveStrategy { public long getKeepAliveDuration(HttpResponse response, HttpContext context) {
From source file com.muk.services.web.client.DefaultKeepAliveStrategy.java
public class DefaultKeepAliveStrategy implements ConnectionKeepAliveStrategy { @Override public long getKeepAliveDuration(HttpResponse response, HttpContext context) { HeaderElementIterator it = new BasicHeaderElementIterator(response.headerIterator(HTTP.CONN_KEEP_ALIVE)); while (it.hasNext()) { HeaderElement he = it.nextElement();
From source file com.mashape.galileo.agent.network.AnalyticsConnKeepAliveStrategy.java
public class AnalyticsConnKeepAliveStrategy implements ConnectionKeepAliveStrategy { private int keepAliveTime = AnalyticsConstants.DEFAULT_CONNECTION_KEEP_ALIVE_TIME; public AnalyticsConnKeepAliveStrategy(int keepAliveTime) { this.keepAliveTime = keepAliveTime;