R - result typepublic class ExecutionScheduledEvent<R> extends ExecutionEvent
delay
unless it is cancelled, either explicitly or via Future.cancel(boolean), a Timeout, or if the underlying Scheduler or ExecutorService is shutdown.| Constructor and Description |
|---|
ExecutionScheduledEvent(R result,
Throwable failure,
Duration delay,
ExecutionContext<R> context) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getDelay()
Returns the delay before the next execution attempt.
|
Throwable |
getLastFailure()
Returns the failure that preceded the event, else
null if there was none. |
R |
getLastResult()
Returns the result that preceded the event, else
null if there was none. |
String |
toString() |
getAttemptCount, getElapsedAttemptTime, getElapsedTime, getExecutionCount, getStartTimepublic ExecutionScheduledEvent(R result, Throwable failure, Duration delay, ExecutionContext<R> context)
public Throwable getLastFailure()
null if there was none.public R getLastResult()
null if there was none.public Duration getDelay()
Copyright © 2021. All rights reserved.