Class ClientOptions
java.lang.Object
org.springframework.vault.support.ClientOptions
Client options for Vault.
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorDescriptionCreate newClientOptions
with default timeouts of 5TimeUnit.SECONDS
connection timeout and 15TimeUnit.SECONDS
read timeout.ClientOptions
(Duration connectionTimeout, Duration readTimeout) Create newClientOptions
. -
Method Summary
-
Constructor Details
-
ClientOptions
public ClientOptions()Create newClientOptions
with default timeouts of 5TimeUnit.SECONDS
connection timeout and 15TimeUnit.SECONDS
read timeout. -
ClientOptions
Create newClientOptions
.- Parameters:
connectionTimeout
- connection timeout, must not be null.readTimeout
- read timeout in, must not be null.- Since:
- 2.0
-
-
Method Details
-
getConnectionTimeout
- Returns:
- the connection timeout in
TimeUnit.MILLISECONDS
.
-
getReadTimeout
- Returns:
- the read timeout in
TimeUnit.MILLISECONDS
.
-