Uses of Class
dev.failsafe.spi.PolicyExecutor
Packages that use PolicyExecutor
Package
Description
APIs for performing failsafe executions.
The Failsafe Service Provider Interface (SPI).
-
Uses of PolicyExecutor in dev.failsafe
Fields in dev.failsafe with type parameters of type PolicyExecutorModifier and TypeFieldDescription(package private) final List
<PolicyExecutor<R>> ExecutionImpl.policyExecutors
Methods in dev.failsafe that return PolicyExecutorModifier and TypeMethodDescriptionPolicy.toExecutor
(int policyIndex) Returns aPolicyExecutor
capable of handling an execution for the Policy.Methods in dev.failsafe with parameters of type PolicyExecutorModifier and TypeMethodDescriptionvoid
ExecutionImpl.cancel
(PolicyExecutor<R> policyExecutor) Called by policies.boolean
ExecutionImpl.isCancelled
(PolicyExecutor<R> policyExecutor) -
Uses of PolicyExecutor in dev.failsafe.internal
Subclasses of PolicyExecutor in dev.failsafe.internalModifier and TypeClassDescriptionclass
A PolicyExecutor that handles failures according to aBulkhead
.class
A PolicyExecutor that handles failures according to aCircuitBreaker
.class
A PolicyExecutor that handles failures according to aFallback
.class
A PolicyExecutor that handles failures according to aRateLimiter
.class
A PolicyExecutor that handles failures according to aRetryPolicy
.class
A PolicyExecutor that handles failures according to aTimeout
.Methods in dev.failsafe.internal that return PolicyExecutorModifier and TypeMethodDescriptionBulkheadImpl.toExecutor
(int policyIndex) CircuitBreakerImpl.toExecutor
(int policyIndex) FallbackImpl.toExecutor
(int policyIndex) RateLimiterImpl.toExecutor
(int policyIndex) RetryPolicyImpl.toExecutor
(int policyIndex) TimeoutImpl.toExecutor
(int policyIndex) -
Uses of PolicyExecutor in dev.failsafe.spi
Methods in dev.failsafe.spi with parameters of type PolicyExecutorModifier and TypeMethodDescriptionvoid
ExecutionInternal.cancel
(PolicyExecutor<R> policyExecutor) Marks the execution as having been cancelled by thepolicyExecutor
, which will also cancel pending executions of any inner policies of thepolicyExecutor
.void
FailsafeFuture.cancelDependencies
(PolicyExecutor<R> cancellingPolicyExecutor, boolean mayInterrupt, ExecutionResult<R> cancelResult) Applies anycancel functions
with thecancelResult
for PolicyExecutors whose policyIndex is invalid input: '<' the policyIndex of thecancellingPolicyExecutor
.boolean
ExecutionInternal.isCancelled
(PolicyExecutor<R> policyExecutor) Returns whether the execution is considered cancelled for thepolicyExecutor
.void
FailsafeFuture.setCancelFn
(PolicyExecutor<R> policyExecutor, BiConsumer<Boolean, ExecutionResult<R>> cancelFn) Sets acancelFn
to be called when a PolicyExecutorcancels dependencies
with a policyIndex > the policyIndex of the givenpolicyExecutor
, or when this future iscancelled
.