public class RetryOnOpenCircuitBreakerDefaultRetryCondition extends DefaultRetryCondition
Class that may retry for the conditions documented in https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm and when the CircuitBreaker is OPEN.
Constructor and Description |
---|
RetryOnOpenCircuitBreakerDefaultRetryCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldBeRetried(BmcException exception)
Check if the operation should be retried.
|
isProcessingException
public RetryOnOpenCircuitBreakerDefaultRetryCondition()
public boolean shouldBeRetried(@Nonnull BmcException exception)
RetryCondition
Check if the operation should be retried.
shouldBeRetried
in interface RetryCondition
shouldBeRetried
in class DefaultRetryCondition
exception
- The exception from the previous unsuccessful operation.true
if the operation should be retried, else false
.Copyright © 2016–2024. All rights reserved.