Uses of Class
dev.failsafe.spi.PolicyExecutor
-
Packages that use PolicyExecutor Package Description dev.failsafe APIs for performing failsafe executions.dev.failsafe.internal dev.failsafe.spi The Failsafe Service Provider Interface (SPI). -
-
Uses of PolicyExecutor in dev.failsafe
Fields in dev.failsafe with type parameters of type PolicyExecutor Modifier and Type Field Description (package private) java.util.List<PolicyExecutor<R>>
ExecutionImpl. policyExecutors
Methods in dev.failsafe that return PolicyExecutor Modifier and Type Method Description PolicyExecutor<R>
Policy. toExecutor(int policyIndex)
Returns aPolicyExecutor
capable of handling an execution for the Policy.Methods in dev.failsafe with parameters of type PolicyExecutor Modifier and Type Method Description void
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.internal Modifier and Type Class Description class
BulkheadExecutor<R>
A PolicyExecutor that handles failures according to aBulkhead
.class
CircuitBreakerExecutor<R>
A PolicyExecutor that handles failures according to aCircuitBreaker
.class
FallbackExecutor<R>
A PolicyExecutor that handles failures according to aFallback
.class
RateLimiterExecutor<R>
A PolicyExecutor that handles failures according to aRateLimiter
.class
RetryPolicyExecutor<R>
A PolicyExecutor that handles failures according to aRetryPolicy
.class
TimeoutExecutor<R>
A PolicyExecutor that handles failures according to aTimeout
.Methods in dev.failsafe.internal that return PolicyExecutor Modifier and Type Method Description PolicyExecutor<R>
BulkheadImpl. toExecutor(int policyIndex)
PolicyExecutor<R>
CircuitBreakerImpl. toExecutor(int policyIndex)
PolicyExecutor<R>
FallbackImpl. toExecutor(int policyIndex)
PolicyExecutor<R>
RateLimiterImpl. toExecutor(int policyIndex)
PolicyExecutor<R>
RetryPolicyImpl. toExecutor(int policyIndex)
PolicyExecutor<R>
TimeoutImpl. toExecutor(int policyIndex)
-
Uses of PolicyExecutor in dev.failsafe.spi
Methods in dev.failsafe.spi with parameters of type PolicyExecutor Modifier and Type Method Description void
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 < 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, java.util.function.BiConsumer<java.lang.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
.
-