Package | Description |
---|---|
dev.failsafe |
APIs for performing failsafe executions.
|
dev.failsafe.spi |
The Failsafe Service Provider Interface (SPI).
|
Modifier and Type | Method and Description |
---|---|
PolicyExecutor<R> |
Policy.toExecutor(int policyIndex)
Returns a
PolicyExecutor capable of handling an execution for the Policy. |
Modifier and Type | Method and Description |
---|---|
void |
ExecutionInternal.cancel(PolicyExecutor<R> policyExecutor)
Marks the execution as having been cancelled by the
policyExecutor , which will also cancel pending
executions of any inner policies of the policyExecutor . |
void |
FailsafeFuture.cancelDependencies(PolicyExecutor<R> cancellingPolicyExecutor,
boolean mayInterrupt,
ExecutionResult<R> cancelResult)
Applies any
cancel functions with the cancelResult for
PolicyExecutors whose policyIndex is < the policyIndex of the cancellingPolicyExecutor . |
boolean |
ExecutionInternal.isCancelled(PolicyExecutor<R> policyExecutor)
Returns whether the execution is considered cancelled for the
policyExecutor . |
void |
FailsafeFuture.setCancelFn(PolicyExecutor<R> policyExecutor,
BiConsumer<Boolean,ExecutionResult<R>> cancelFn)
Sets a
cancelFn to be called when a PolicyExecutor cancels dependencies with a policyIndex > the policyIndex of the given policyExecutor , or
when this future is cancelled . |
Copyright © 2022. All rights reserved.