Package dev.failsafe.internal
Interface EventHandler<R>
-
- Type Parameters:
R- result type
public interface EventHandler<R>Internal handling of events.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(ExecutionResult<R> result, ExecutionContext<R> context)static <R> EventHandler<R>ofExecutionAttempted(EventListener<ExecutionAttemptedEvent<R>> handler)static <R> EventHandler<R>ofExecutionCompleted(EventListener<ExecutionCompletedEvent<R>> handler)static <R> EventHandler<R>ofExecutionScheduled(EventListener<ExecutionScheduledEvent<R>> handler)
-
-
-
Method Detail
-
handle
void handle(ExecutionResult<R> result, ExecutionContext<R> context)
-
ofExecutionCompleted
static <R> EventHandler<R> ofExecutionCompleted(EventListener<ExecutionCompletedEvent<R>> handler)
-
ofExecutionAttempted
static <R> EventHandler<R> ofExecutionAttempted(EventListener<ExecutionAttemptedEvent<R>> handler)
-
ofExecutionScheduled
static <R> EventHandler<R> ofExecutionScheduled(EventListener<ExecutionScheduledEvent<R>> handler)
-
-