Top Description Fields Constructors Methods
com.oracle.bmc.retrier

public Class DefaultRetryCondition

extends Object
implements RetryCondition
Class Inheritance
All Implemented Interfaces
com.oracle.bmc.retrier.RetryCondition
Known Direct Subclasses
com.oracle.bmc.retrier.RetryOnOpenCircuitBreakerDefaultRetryCondition
Imports
java.util.Arrays, .Collections, .HashMap, .HashSet, .Map, .Set, com.oracle.bmc.circuitbreaker.CallNotAllowedException, com.oracle.bmc.model.BmcException, jakarta.annotation.Nonnull

Class that represents the conditions documented in https://docs.oracle.com/iaas/Content/API/References/apierrors.htm for which the operation may be retried.

Field Summary

Modifier and TypeField and Description
private static final String
private static final Map<Integer, Set<String>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Check if the operation should be retried.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

PROCESSING_EXCEPTION_MSGback to summary
private static final String PROCESSING_EXCEPTION_MSG
RETRYABLE_SERVICE_ERRORSback to summary
private static final Map<Integer, Set<String>> RETRYABLE_SERVICE_ERRORS

Constructor Detail

DefaultRetryConditionback to summary
public DefaultRetryCondition()

Method Detail

isProcessingExceptionback to summary
public static boolean isProcessingException(final BmcException exception)
shouldBeRetriedback to summary
public boolean shouldBeRetried(final BmcException exception)

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