public class HttpClientKeepAliveStrategy extends Object implements org.apache.http.conn.ConnectionKeepAliveStrategy
| Constructor and Description |
|---|
HttpClientKeepAliveStrategy() |
| Modifier and Type | Method and Description |
|---|---|
long |
getKeepAliveDuration(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
void |
setKeepAliveTimeOut(int keepAliveTimeOut) |
public long getKeepAliveDuration(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
getKeepAliveDuration in interface org.apache.http.conn.ConnectionKeepAliveStrategypublic void setKeepAliveTimeOut(int keepAliveTimeOut)
Copyright © 2015–2016 Baidu. All rights reserved.