Package com.oracle.bmc.retrier
Class RetryOnOpenCircuitBreakerDefaultRetryCondition
- java.lang.Object
-
- com.oracle.bmc.retrier.DefaultRetryCondition
-
- com.oracle.bmc.retrier.RetryOnOpenCircuitBreakerDefaultRetryCondition
-
- All Implemented Interfaces:
RetryCondition
public class RetryOnOpenCircuitBreakerDefaultRetryCondition extends DefaultRetryCondition
Class that may retry for the conditions documented in https://docs.oracle.com/iaas/Content/API/References/apierrors.htm and when the CircuitBreaker is OPEN.
-
-
Constructor Summary
Constructors Constructor Description RetryOnOpenCircuitBreakerDefaultRetryCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldBeRetried(BmcException exception)
Check if the operation should be retried.-
Methods inherited from class com.oracle.bmc.retrier.DefaultRetryCondition
isProcessingException
-
-
-
-
Method Detail
-
shouldBeRetried
public boolean shouldBeRetried(@Nonnull BmcException exception)
Description copied from interface:RetryCondition
Check if the operation should be retried.- Specified by:
shouldBeRetried
in interfaceRetryCondition
- Overrides:
shouldBeRetried
in classDefaultRetryCondition
- Parameters:
exception
- The exception from the previous unsuccessful operation.- Returns:
- true if the operation should be retried, else false.
-
-