Package | Description |
---|---|
dev.failsafe |
APIs for performing failsafe executions.
|
Modifier and Type | Method and Description |
---|---|
EventListener<ExecutionCompletedEvent<R>> |
RetryPolicyConfig.getAbortListener()
Returns the abort event listener.
|
EventListener<ExecutionCompletedEvent<R>> |
PolicyConfig.getFailureListener()
Returns the failure listener.
|
EventListener<ExecutionCompletedEvent<R>> |
RetryPolicyConfig.getRetriesExceededListener()
Returns the retries exceeded event listener.
|
EventListener<ExecutionCompletedEvent<R>> |
PolicyConfig.getSuccessListener()
Returns the success listener.
|
Modifier and Type | Method and Description |
---|---|
RetryPolicyBuilder<R> |
RetryPolicyBuilder.onAbort(EventListener<ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution is aborted. |
FailsafeExecutor<R> |
FailsafeExecutor.onComplete(EventListener<ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution is complete. |
S |
PolicyBuilder.onFailure(EventListener<ExecutionCompletedEvent<R>> listener) |
FailsafeExecutor<R> |
FailsafeExecutor.onFailure(EventListener<ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution fails. |
S |
PolicyListeners.onFailure(EventListener<ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when the policy fails to handle an execution. |
RetryPolicyBuilder<R> |
RetryPolicyBuilder.onRetriesExceeded(EventListener<ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution fails and the max retry attempts or max duration
are exceeded. |
S |
PolicyBuilder.onSuccess(EventListener<ExecutionCompletedEvent<R>> listener) |
FailsafeExecutor<R> |
FailsafeExecutor.onSuccess(EventListener<ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when an execution is successful. |
S |
PolicyListeners.onSuccess(EventListener<ExecutionCompletedEvent<R>> listener)
Registers the
listener to be called when the policy succeeds in handling an execution. |
Copyright © 2022. All rights reserved.