public abstract class AbstractExecution extends ExecutionContext
| Modifier and Type | Method and Description |
|---|---|
<T extends Throwable> |
getLastFailure()
Returns the last failure that was recorded.
|
<T> T |
getLastResult()
Returns the last result that was recorded.
|
Duration |
getWaitTime()
Returns the time to wait before the next execution attempt.
|
boolean |
isComplete()
Returns whether the execution is complete or if it can be retried.
|
copy, getAttemptCount, getElapsedTime, getStartTimepublic <T extends Throwable> T getLastFailure()
public <T> T getLastResult()
public Duration getWaitTime()
0 if an execution has not yet
occurred.public boolean isComplete()
Copyright © 2019. All rights reserved.