Package com.oracle.bmc.retrier
Class RetryConfiguration
- java.lang.Object
-
- com.oracle.bmc.waiter.WaiterConfiguration
-
- com.oracle.bmc.retrier.RetryConfiguration
-
public class RetryConfiguration extends WaiterConfiguration
Configuration used for retrying.The default termination strategy is a single attempt (i.e. no retry). The default delay strategy is an exponential backoff strategy to a max wait of 30 seconds. The default retry condition is
DefaultRetryCondition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetryConfiguration.BuilderBuilder class for retry configuration.-
Nested classes/interfaces inherited from class com.oracle.bmc.waiter.WaiterConfiguration
WaiterConfiguration.WaitContext
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_RETRY_ATTEMPTSstatic longDEFAULT_MAX_WAIT_TIMEstatic RetryConfigurationNO_RETRY_CONFIGURATIONstatic StringOCI_JAVASDK_DEFAULT_RETRY_ON_OPEN_CIRCUIT_BREAKER_SYSTEM_PROPERTY_NAMEstatic RetryConfigurationSDK_DEFAULT_RETRY_CONFIGURATIONstatic RetryConfigurationSDK_FAIL_FAST_CIRCUIT_BREAKER_DEFAULT_RETRY_CONFIGURATIONstatic RetryConfigurationSDK_RETRY_ON_OPEN_CIRCUIT_BREAKER_DEFAULT_RETRY_CONFIGURATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetryConfiguration.Builderbuilder()Create a builder for retry configurationRetryConditiongetRetryCondition()RetryOptionsgetRetryOptions()StringtoString()-
Methods inherited from class com.oracle.bmc.waiter.WaiterConfiguration
getDelayStrategy, getTerminationStrategy
-
-
-
-
Field Detail
-
NO_RETRY_CONFIGURATION
public static final RetryConfiguration NO_RETRY_CONFIGURATION
-
DEFAULT_MAX_RETRY_ATTEMPTS
public static final int DEFAULT_MAX_RETRY_ATTEMPTS
- See Also:
- Constant Field Values
-
DEFAULT_MAX_WAIT_TIME
public static final long DEFAULT_MAX_WAIT_TIME
-
SDK_FAIL_FAST_CIRCUIT_BREAKER_DEFAULT_RETRY_CONFIGURATION
public static final RetryConfiguration SDK_FAIL_FAST_CIRCUIT_BREAKER_DEFAULT_RETRY_CONFIGURATION
-
SDK_RETRY_ON_OPEN_CIRCUIT_BREAKER_DEFAULT_RETRY_CONFIGURATION
public static final RetryConfiguration SDK_RETRY_ON_OPEN_CIRCUIT_BREAKER_DEFAULT_RETRY_CONFIGURATION
-
OCI_JAVASDK_DEFAULT_RETRY_ON_OPEN_CIRCUIT_BREAKER_SYSTEM_PROPERTY_NAME
public static final String OCI_JAVASDK_DEFAULT_RETRY_ON_OPEN_CIRCUIT_BREAKER_SYSTEM_PROPERTY_NAME
- See Also:
- Constant Field Values
-
SDK_DEFAULT_RETRY_CONFIGURATION
public static final RetryConfiguration SDK_DEFAULT_RETRY_CONFIGURATION
-
-
Method Detail
-
builder
public static RetryConfiguration.Builder builder()
Create a builder for retry configuration- Returns:
- builder
-
toString
public String toString()
- Overrides:
toStringin classWaiterConfiguration
-
getRetryCondition
public RetryCondition getRetryCondition()
-
getRetryOptions
public RetryOptions getRetryOptions()
-
-