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 class
RetryConfiguration.Builder
Builder 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 int
DEFAULT_MAX_RETRY_ATTEMPTS
static long
DEFAULT_MAX_WAIT_TIME
static RetryConfiguration
NO_RETRY_CONFIGURATION
static String
OCI_JAVASDK_DEFAULT_RETRY_ON_OPEN_CIRCUIT_BREAKER_SYSTEM_PROPERTY_NAME
static RetryConfiguration
SDK_DEFAULT_RETRY_CONFIGURATION
static RetryConfiguration
SDK_FAIL_FAST_CIRCUIT_BREAKER_DEFAULT_RETRY_CONFIGURATION
static RetryConfiguration
SDK_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.Builder
builder()
Create a builder for retry configurationRetryCondition
getRetryCondition()
RetryOptions
getRetryOptions()
String
toString()
-
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:
toString
in classWaiterConfiguration
-
getRetryCondition
public RetryCondition getRetryCondition()
-
getRetryOptions
public RetryOptions getRetryOptions()
-
-