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