Class ExecutionAttemptedEvent<R>
java.lang.Object
dev.failsafe.event.ExecutionEvent
dev.failsafe.event.ExecutionAttemptedEvent<R>
- Type Parameters:
R- result type
Indicates an execution was attempted.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExecutionAttemptedEvent(R result, Throwable exception, ExecutionContext<R> context) -
Method Summary
Modifier and TypeMethodDescriptionReturns the failure that preceded the event, elsenullif there was none.Returns the result that preceded the event, elsenullif there was none.toString()Methods inherited from class ExecutionEvent
getAttemptCount, getElapsedAttemptTime, getElapsedTime, getExecutionCount, getStartTime, isFirstAttempt, isRetry
-
Field Details
-
result
-
exception
-
-
Constructor Details
-
ExecutionAttemptedEvent
-
-
Method Details
-
getLastException
Returns the failure that preceded the event, elsenullif there was none. -
getLastResult
Returns the result that preceded the event, elsenullif there was none. -
toString
-