Top Description Constructors Methods
com.oracle.bmc.retrier

public Class RetryOnOpenCircuitBreakerDefaultRetryCondition

extends DefaultRetryCondition
Class Inheritance
Imports
com.oracle.bmc.circuitbreaker.CallNotAllowedException, com.oracle.bmc.model.BmcException, jakarta.annotation.Nonnull

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
shouldBeRetried(final BmcException
The exception from the previous unsuccessful operation.
exception
)

Overrides com.oracle.bmc.retrier.DefaultRetryCondition.shouldBeRetried.

Implements com.oracle.bmc.retrier.RetryCondition.shouldBeRetried.

Check if the operation should be retried.

Inherited from com.oracle.bmc.retrier.DefaultRetryCondition:
isProcessingException

Constructor Detail

RetryOnOpenCircuitBreakerDefaultRetryConditionback to summary
public RetryOnOpenCircuitBreakerDefaultRetryCondition()

Method Detail

shouldBeRetriedback to summary
public boolean shouldBeRetried(final BmcException exception)

Overrides com.oracle.bmc.retrier.DefaultRetryCondition.shouldBeRetried.

Implements com.oracle.bmc.retrier.RetryCondition.shouldBeRetried.

Doc from com.oracle.bmc.retrier.RetryCondition.shouldBeRetried.

Check if the operation should be retried.

Parameters
exception:BmcException

The exception from the previous unsuccessful operation.

Returns:boolean

true if the operation should be retried, else false.

Annotations
@Override