Class HttpClientOptions
java.lang.Object
com.datastax.astra.client.core.http.HttpClientOptions
- All Implemented Interfaces:
Cloneable
Options to set up http Client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Caller
Default caller name.static final int
Default retry count.static final int
Default retry delay. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a caller.clone()
Gets callersGets proxyGets httpRedirectGets httpVersionint
Gets retryCountGets retryDelayhttpRetries
(int i, Duration duration) Set the number of retries and the delay between each retry.
-
Field Details
-
DEFAULT_CALLER
Default caller name. -
DEFAULT_RETRY_COUNT
public static final int DEFAULT_RETRY_COUNTDefault retry count.- See Also:
-
DEFAULT_RETRY_DELAY_MILLIS
public static final int DEFAULT_RETRY_DELAY_MILLISDefault retry delay.- See Also:
-
-
Constructor Details
-
HttpClientOptions
public HttpClientOptions()Default constructor.
-
-
Method Details
-
addCaller
Add a caller.- Parameters:
caller
- caller to add.
-
getCallers
Gets callers- Returns:
- value of callers
-
httpRetries
Set the number of retries and the delay between each retry.- Parameters:
i
- number of retriesduration
- delay between each retry- Returns:
- this
-
getRetryCount
public int getRetryCount()Gets retryCount- Returns:
- value of retryCount
-
getRetryDelay
Gets retryDelay- Returns:
- value of retryDelay
-
getHttpVersion
Gets httpVersion- Returns:
- value of httpVersion
-
getHttpRedirect
Gets httpRedirect- Returns:
- value of httpRedirect
-
getHttpProxy
Gets proxy- Returns:
- value of proxy
-
clone
-