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.policyExecutorsMethods in dev.failsafe that return PolicyExecutorModifier and TypeMethodDescriptionPolicy.toExecutor(int policyIndex) Returns aPolicyExecutorcapable of handling an execution for the Policy.Methods in dev.failsafe with parameters of type PolicyExecutorModifier and TypeMethodDescriptionvoidExecutionImpl.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.internalModifier and TypeClassDescriptionclassA PolicyExecutor that handles failures according to aBulkhead.classA PolicyExecutor that handles failures according to aCircuitBreaker.classA PolicyExecutor that handles failures according to aFallback.classA PolicyExecutor that handles failures according to aRateLimiter.classA PolicyExecutor that handles failures according to aRetryPolicy.classA 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 TypeMethodDescriptionvoidExecutionInternal.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 invalid input: '<' the policyIndex of thecancellingPolicyExecutor.booleanExecutionInternal.isCancelled(PolicyExecutor<R> policyExecutor) Returns whether the execution is considered cancelled for thepolicyExecutor.voidFailsafeFuture.setCancelFn(PolicyExecutor<R> policyExecutor, BiConsumer<Boolean, ExecutionResult<R>> cancelFn) Sets acancelFnto be called when a PolicyExecutorcancels dependencieswith a policyIndex > the policyIndex of the givenpolicyExecutor, or when this future iscancelled.