Class ConnectionConfiguration
java.lang.Object
com.predic8.membrane.core.transport.http.client.ConnectionConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongintinthashCode()voidsetKeepAliveTimeout(long keepAliveTimeout) voidsetLocalAddr(String localAddr) voidsetTimeout(int timeout)
-
Constructor Details
-
ConnectionConfiguration
public ConnectionConfiguration()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getKeepAliveTimeout
public long getKeepAliveTimeout() -
setKeepAliveTimeout
public void setKeepAliveTimeout(long keepAliveTimeout) - Default
- 4000
- Description
- Time in milliseconds after which an open connection to the server is not reused. Be sure to set it to a smaller value than the KeepAlive directive on your server. Note that the a "Keep-Alive" header in the response always takes precedence.
- Example
- 30000
-
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) - Default
- 10000
- Description
- Socket timeout (connect, read, etc.) in milliseconds.
-
getLocalAddr
-
setLocalAddr
- Default
- not set
- Description
- The local IP address to use for outbound connections.
-