public class ClientOptions
extends java.lang.Object
| Constructor and Description |
|---|
ClientOptions()
Create new
ClientOptions with default timeouts. |
ClientOptions(int connectionTimeout,
int readTimeout)
Create a
ClientOptions with the provided values. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getConnectionTimeout()
Get the connection timeout in
TimeUnit.MILLISECONDS. |
java.lang.Integer |
getReadTimeout()
Get the read timeout in
TimeUnit.MILLISECONDS. |
public ClientOptions()
ClientOptions with default timeouts.public ClientOptions(int connectionTimeout,
int readTimeout)
ClientOptions with the provided values.connectionTimeout - connection timeout in TimeUnit.MILLISECONDS, must
be greater 0.readTimeout - read timeout in TimeUnit.MILLISECONDS, must be greater
0.public java.lang.Integer getConnectionTimeout()
TimeUnit.MILLISECONDS.public java.lang.Integer getReadTimeout()
TimeUnit.MILLISECONDS.