public interface RetryableOperation<T>
OperationRetryer
Modifier and Type | Method and Description |
---|---|
RetryableResult<T> |
run()
Run the underlying operation.
|
RetryableResult<T> run() throws InterruptedException, StartupCheckInterruptedException, Exception
RetryableResult
to indicate next action to take. The
actions can be return value of successful operation, no longer retry and return null, or
retry the operation again.
Any thrown exceptions will not be retried by the retrying logic. In this case, the
operation is aborted and the exception is rethrown.RetryableResult
to indicate next steps to take by retrying logic.InterruptedException
- in case the underlying operation is interruptedStartupCheckInterruptedException
- in case the underlying operation is used for Cruise Control start up and that is interruptedException
- any other exception