R
- result typepublic class ExecutionCompletedEvent<R> extends ExecutionEvent
Constructor and Description |
---|
ExecutionCompletedEvent(R result,
Throwable exception,
ExecutionContext<R> context) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Returns the failure that preceded the event, else
null if there was none. |
Throwable |
getFailure()
Deprecated.
Use
getException() instead |
R |
getResult()
Returns the result that preceded the event, else
null if there was none. |
String |
toString() |
getAttemptCount, getElapsedAttemptTime, getElapsedTime, getExecutionCount, getStartTime, isFirstAttempt, isRetry
public ExecutionCompletedEvent(R result, Throwable exception, ExecutionContext<R> context)
public Throwable getException()
null
if there was none.@Deprecated public Throwable getFailure()
getException()
insteadpublic R getResult()
null
if there was none.Copyright © 2022. All rights reserved.