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. policyExecutorsMethods in dev.failsafe that return PolicyExecutor Modifier and Type Method Description PolicyExecutor<R>Policy. toExecutor(int policyIndex)Returns aPolicyExecutorcapable of handling an execution for the Policy.Methods in dev.failsafe with parameters of type PolicyExecutor Modifier and Type Method Description voidExecutionImpl. cancel(PolicyExecutor<R> policyExecutor)Called by policies.booleanExecutionImpl. isCancelled(PolicyExecutor<R> policyExecutor) -
Uses of PolicyExecutor in dev.failsafe.internal
Subclasses of PolicyExecutor in dev.failsafe.internal Modifier and Type Class Description classBulkheadExecutor<R>A PolicyExecutor that handles failures according to aBulkhead.classCircuitBreakerExecutor<R>A PolicyExecutor that handles failures according to aCircuitBreaker.classFallbackExecutor<R>A PolicyExecutor that handles failures according to aFallback.classRateLimiterExecutor<R>A PolicyExecutor that handles failures according to aRateLimiter.classRetryPolicyExecutor<R>A PolicyExecutor that handles failures according to aRetryPolicy.classTimeoutExecutor<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 voidExecutionInternal. 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.voidFailsafeFuture. cancelDependencies(PolicyExecutor<R> cancellingPolicyExecutor, boolean mayInterrupt, ExecutionResult<R> cancelResult)Applies anycancel functionswith thecancelResultfor PolicyExecutors whose policyIndex is < the policyIndex of thecancellingPolicyExecutor.booleanExecutionInternal. isCancelled(PolicyExecutor<R> policyExecutor)Returns whether the execution is considered cancelled for thepolicyExecutor.voidFailsafeFuture. setCancelFn(PolicyExecutor<R> policyExecutor, java.util.function.BiConsumer<java.lang.Boolean,ExecutionResult<R>> cancelFn)Sets acancelFnto be called when a PolicyExecutorcancels dependencieswith a policyIndex > the policyIndex of the givenpolicyExecutor, or when this future iscancelled.
-