Uses of Interface
dev.failsafe.event.EventListener
Packages that use EventListener
-
Uses of EventListener in dev.failsafe
Fields in dev.failsafe declared as EventListenerModifier and TypeFieldDescription(package private) EventListener
<ExecutionCompletedEvent<R>> RetryPolicyConfig.abortListener
(package private) EventListener
<CircuitBreakerStateChangedEvent> CircuitBreakerConfig.closeListener
(package private) EventListener
<ExecutionAttemptedEvent<R>> FallbackConfig.failedAttemptListener
(package private) EventListener
<ExecutionAttemptedEvent<R>> RetryPolicyConfig.failedAttemptListener
(package private) EventListener
<ExecutionCompletedEvent<R>> PolicyConfig.failureListener
(package private) EventListener
<CircuitBreakerStateChangedEvent> CircuitBreakerConfig.halfOpenListener
(package private) EventListener
<CircuitBreakerStateChangedEvent> CircuitBreakerConfig.openListener
(package private) EventListener
<ExecutionCompletedEvent<R>> RetryPolicyConfig.retriesExceededListener
(package private) EventListener
<ExecutionAttemptedEvent<R>> RetryPolicyConfig.retryListener
(package private) EventListener
<ExecutionScheduledEvent<R>> RetryPolicyConfig.retryScheduledListener
(package private) EventListener
<ExecutionCompletedEvent<R>> PolicyConfig.successListener
Methods in dev.failsafe that return EventListenerModifier and TypeMethodDescriptionRetryPolicyConfig.getAbortListener()
Returns the abort event listener.CircuitBreakerConfig.getCloseListener()
Returns the close event listener.FallbackConfig.getFailedAttemptListener()
Returns the failed attempt event listener.RetryPolicyConfig.getFailedAttemptListener()
Returns the failed attempt event listener.PolicyConfig.getFailureListener()
Returns the failure listener.CircuitBreakerConfig.getHalfOpenListener()
Returns the half-open event listener.CircuitBreakerConfig.getOpenListener()
Returns the open event listener.RetryPolicyConfig.getRetriesExceededListener()
Returns the retries exceeded event listener.RetryPolicyConfig.getRetryListener()
Returns the retry event listener.RetryPolicyConfig.getRetryScheduledListener()
Returns the retry scheduled event listener.PolicyConfig.getSuccessListener()
Returns the success listener.Methods in dev.failsafe with parameters of type EventListenerModifier and TypeMethodDescriptionRetryPolicyBuilder.onAbort
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution is aborted.CircuitBreakerBuilder.onClose
(EventListener<CircuitBreakerStateChangedEvent> listener) Calls thelistener
when the circuit is closed.FailsafeExecutor.onComplete
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution is complete.FallbackBuilder.onFailedAttempt
(EventListener<ExecutionAttemptedEvent<R>> listener) Registers thelistener
to be called when the last execution attempt prior to the fallback failed.RetryPolicyBuilder.onFailedAttempt
(EventListener<ExecutionAttemptedEvent<R>> listener) Registers thelistener
to be called when an execution attempt fails.FailsafeExecutor.onFailure
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution fails.PolicyBuilder.onFailure
(EventListener<ExecutionCompletedEvent<R>> listener) PolicyListeners.onFailure
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when the policy fails to handle an execution.CircuitBreakerBuilder.onHalfOpen
(EventListener<CircuitBreakerStateChangedEvent> listener) Calls thelistener
when the circuit is half-opened.CircuitBreakerBuilder.onOpen
(EventListener<CircuitBreakerStateChangedEvent> listener) Calls thelistener
when the circuit is opened.RetryPolicyBuilder.onRetriesExceeded
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution fails and themax retry attempts
ormax duration
are exceeded.RetryPolicyBuilder.onRetry
(EventListener<ExecutionAttemptedEvent<R>> listener) Registers thelistener
to be called when a retry is about to be attempted.RetryPolicyBuilder.onRetryScheduled
(EventListener<ExecutionScheduledEvent<R>> listener) Registers thelistener
to be called when a retry for an async call is about to be scheduled.FailsafeExecutor.onSuccess
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution is successful.PolicyBuilder.onSuccess
(EventListener<ExecutionCompletedEvent<R>> listener) PolicyListeners.onSuccess
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when the policy succeeds in handling an execution. -
Uses of EventListener in dev.failsafe.internal
Methods in dev.failsafe.internal with parameters of type EventListenerModifier and TypeMethodDescriptionstatic <R> EventHandler
<R> EventHandler.ofExecutionAttempted
(EventListener<ExecutionAttemptedEvent<R>> handler) static <R> EventHandler
<R> EventHandler.ofExecutionCompleted
(EventListener<ExecutionCompletedEvent<R>> handler) static <R> EventHandler
<R> EventHandler.ofExecutionScheduled
(EventListener<ExecutionScheduledEvent<R>> handler) protected void
CircuitBreakerImpl.transitionTo
(CircuitBreaker.State newState, EventListener<CircuitBreakerStateChangedEvent> listener, ExecutionContext<R> context) Transitions to thenewState
if not already in that state and calls any associated event listener.