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 exception,
Duration delay,
ExecutionContext<R> context) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getDelay()
Returns the delay before the next execution attempt.
|
Throwable |
getLastException()
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, getStartTime, isFirstAttempt, isRetrypublic ExecutionScheduledEvent(R result, Throwable exception, Duration delay, ExecutionContext<R> context)
public Throwable getLastException()
null if there was none.public R getLastResult()
null if there was none.public Duration getDelay()
Copyright © 2022. All rights reserved.