public class ClientOptions extends Object
Constructor and Description |
---|
ClientOptions()
Create new
ClientOptions with default timeouts of 5
TimeUnit.SECONDS connection timeout and 15
TimeUnit.SECONDS read timeout. |
ClientOptions(int connectionTimeout,
int readTimeout)
Create new
ClientOptions . |
Modifier and Type | Method and Description |
---|---|
int |
getConnectionTimeout() |
int |
getReadTimeout() |
public ClientOptions()
ClientOptions
with default timeouts of 5
TimeUnit.SECONDS
connection timeout and 15
TimeUnit.SECONDS
read timeout.public ClientOptions(int connectionTimeout, int readTimeout)
ClientOptions
.connectionTimeout
- connection timeout in TimeUnit.MILLISECONDS
, must
be greater 0.readTimeout
- read timeout in TimeUnit.MILLISECONDS
, must be greater
0.public int getConnectionTimeout()
TimeUnit.MILLISECONDS
.public int getReadTimeout()
TimeUnit.MILLISECONDS
.Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.