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 CallerDefault caller name.static final intDefault retry count.static final intDefault retry delay. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a caller.clone()Gets callersGets proxyGets httpRedirectGets httpVersionintGets 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
-