public class HttpClientProperties extends Object
| 构造器和说明 |
|---|
HttpClientProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getConnectionKeepAliveTimeout()
Gets the value of connectionKeepAliveTimeout
|
int |
getConnectionRequestTimeout()
Gets the value of connectionRequestTimeout
|
int |
getConnectTimeout()
Gets the value of connectTimeout
|
int |
getPoolDefaultMaxPerRoute()
Gets the value of poolDefaultMaxPerRoute
|
int |
getPoolMaxTotal()
Gets the value of poolMaxTotal
|
int |
getSocketSoLinger()
Gets the value of socketSoLinger
|
int |
getSocketSoTimeout()
Gets the value of socketSoTimeout
|
int |
getSocketTimeout()
Gets the value of socketTimeout
|
int |
isRetryCount()
Gets the value of retryCount
|
boolean |
isSocketSoKeepAlive()
Gets the value of socketSoKeepAlive
|
boolean |
isSocketSoReuseAddress()
Gets the value of socketSoReuseAddress
|
boolean |
isSocketTcpNoDelay()
Gets the value of socketTcpNoDelay
|
boolean |
isUseKeepAliveStrategy()
Gets the value of useKeepAliveStrategy
|
void |
setConnectionKeepAliveTimeout(int connectionKeepAliveTimeout)
Sets the connectionKeepAliveTimeout
You can use getConnectionKeepAliveTimeout() to get the value of connectionKeepAliveTimeout
|
void |
setConnectionRequestTimeout(int connectionRequestTimeout)
Sets the connectionRequestTimeout
You can use getConnectionRequestTimeout() to get the value of connectionRequestTimeout
|
void |
setConnectTimeout(int connectTimeout)
Sets the connectTimeout
You can use getConnectTimeout() to get the value of connectTimeout
|
void |
setPoolDefaultMaxPerRoute(int poolDefaultMaxPerRoute)
Sets the poolDefaultMaxPerRoute
You can use getPoolDefaultMaxPerRoute() to get the value of poolDefaultMaxPerRoute
|
void |
setPoolMaxTotal(int poolMaxTotal)
Sets the poolMaxTotal
You can use getPoolMaxTotal() to get the value of poolMaxTotal
|
void |
setRetryCount(int retryCount)
Sets the retryCount
You can use getRetryCount() to get the value of retryCount
|
void |
setSocketSoKeepAlive(boolean socketSoKeepAlive)
Sets the socketSoKeepAlive
You can use getSocketSoKeepAlive() to get the value of socketSoKeepAlive
|
void |
setSocketSoLinger(int socketSoLinger)
Sets the socketSoLinger
You can use getSocketSoLinger() to get the value of socketSoLinger
|
void |
setSocketSoReuseAddress(boolean socketSoReuseAddress)
Sets the socketSoReuseAddress
You can use getSocketSoReuseAddress() to get the value of socketSoReuseAddress
|
void |
setSocketSoTimeout(int socketSoTimeout)
Sets the socketSoTimeout
You can use getSocketSoTimeout() to get the value of socketSoTimeout
|
void |
setSocketTcpNoDelay(boolean socketTcpNoDelay)
Sets the socketTcpNoDelay
You can use getSocketTcpNoDelay() to get the value of socketTcpNoDelay
|
void |
setSocketTimeout(int socketTimeout)
Sets the socketTimeout
You can use getSocketTimeout() to get the value of socketTimeout
|
void |
setUseKeepAliveStrategy(boolean useKeepAliveStrategy)
Sets the useKeepAliveStrategy
You can use getUserKeepAliveStrategy() to get the value of useKeepAliveStrategy
|
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
You can use getConnectTimeout() to get the value of connectTimeout
connectTimeout - connectTimeoutpublic int getConnectionRequestTimeout()
public void setConnectionRequestTimeout(int connectionRequestTimeout)
You can use getConnectionRequestTimeout() to get the value of connectionRequestTimeout
connectionRequestTimeout - connectionRequestTimeoutpublic int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
You can use getSocketTimeout() to get the value of socketTimeout
socketTimeout - socketTimeoutpublic int getConnectionKeepAliveTimeout()
public void setConnectionKeepAliveTimeout(int connectionKeepAliveTimeout)
You can use getConnectionKeepAliveTimeout() to get the value of connectionKeepAliveTimeout
connectionKeepAliveTimeout - connectionKeepAliveTimeoutpublic boolean isUseKeepAliveStrategy()
public void setUseKeepAliveStrategy(boolean useKeepAliveStrategy)
You can use getUserKeepAliveStrategy() to get the value of useKeepAliveStrategy
useKeepAliveStrategy - useKeepAliveStrategypublic int getPoolMaxTotal()
public void setPoolMaxTotal(int poolMaxTotal)
You can use getPoolMaxTotal() to get the value of poolMaxTotal
poolMaxTotal - poolMaxTotalpublic int getPoolDefaultMaxPerRoute()
public void setPoolDefaultMaxPerRoute(int poolDefaultMaxPerRoute)
You can use getPoolDefaultMaxPerRoute() to get the value of poolDefaultMaxPerRoute
poolDefaultMaxPerRoute - poolDefaultMaxPerRoutepublic boolean isSocketTcpNoDelay()
public void setSocketTcpNoDelay(boolean socketTcpNoDelay)
You can use getSocketTcpNoDelay() to get the value of socketTcpNoDelay
socketTcpNoDelay - socketTcpNoDelaypublic boolean isSocketSoReuseAddress()
public void setSocketSoReuseAddress(boolean socketSoReuseAddress)
You can use getSocketSoReuseAddress() to get the value of socketSoReuseAddress
socketSoReuseAddress - socketSoReuseAddresspublic int getSocketSoTimeout()
public void setSocketSoTimeout(int socketSoTimeout)
You can use getSocketSoTimeout() to get the value of socketSoTimeout
socketSoTimeout - socketSoTimeoutpublic int getSocketSoLinger()
public void setSocketSoLinger(int socketSoLinger)
You can use getSocketSoLinger() to get the value of socketSoLinger
socketSoLinger - socketSoLingerpublic boolean isSocketSoKeepAlive()
public void setSocketSoKeepAlive(boolean socketSoKeepAlive)
You can use getSocketSoKeepAlive() to get the value of socketSoKeepAlive
socketSoKeepAlive - socketSoKeepAlivepublic int isRetryCount()
public void setRetryCount(int retryCount)
You can use getRetryCount() to get the value of retryCount
retryCount - retryCountCopyright © 2020 IBIT程序猿. All rights reserved.