Package com.oracle.bmc.retrier
Class DefaultRetryCondition
- java.lang.Object
-
- com.oracle.bmc.retrier.DefaultRetryCondition
-
- All Implemented Interfaces:
RetryCondition
- Direct Known Subclasses:
RetryOnOpenCircuitBreakerDefaultRetryCondition
public class DefaultRetryCondition extends Object implements RetryCondition
Class that represents the conditions documented in https://docs.oracle.com/iaas/Content/API/References/apierrors.htm for which the operation may be retried.
-
-
Constructor Summary
Constructors Constructor Description DefaultRetryCondition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisProcessingException(BmcException exception)booleanshouldBeRetried(BmcException exception)Check if the operation should be retried.
-
-
-
Method Detail
-
shouldBeRetried
public boolean shouldBeRetried(@Nonnull BmcException exception)Description copied from interface:RetryConditionCheck if the operation should be retried.- Specified by:
shouldBeRetriedin interfaceRetryCondition- Parameters:
exception- The exception from the previous unsuccessful operation.- Returns:
- true if the operation should be retried, else false.
-
isProcessingException
public static boolean isProcessingException(BmcException exception)
-
-