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 |
---|---|
boolean |
shouldBeRetried(@NonNull BmcException exception)
Check if the operation should be retried.
|
public boolean shouldBeRetried(@NonNull @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
.Copyright © 2016–2020. All rights reserved.