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.
|
isProcessingExceptionpublic RetryOnOpenCircuitBreakerDefaultRetryCondition()
public boolean shouldBeRetried(@Nonnull
BmcException exception)
RetryConditionCheck if the operation should be retried.
shouldBeRetried in interface RetryConditionshouldBeRetried in class DefaultRetryConditionexception - The exception from the previous unsuccessful operation.true if the operation should be retried, else false.Copyright © 2016–2024. All rights reserved.