Top Description Methods
com.oracle.bmc.retrier

public Interface RetryCondition

Known Direct Implementers
com.oracle.bmc.retrier.DefaultRetryCondition
Annotations
@FunctionalInterface
Imports
com.oracle.bmc.model.BmcException, jakarta.annotation.Nonnull

Interface that defines the condition for which a retry may be attempted.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the operation should be retried, else false.
shouldBeRetried
(final BmcException
The exception from the previous unsuccessful operation.
exception
)

Check if the operation should be retried.

Method Detail

shouldBeRetriedback to summary
public boolean shouldBeRetried(final BmcException exception)

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.