Package dev.failsafe
Interface Policy<R>
-
- Type Parameters:
R
- result type
- All Known Subinterfaces:
Bulkhead<R>
,CircuitBreaker<R>
,DelayablePolicy<R>
,FailurePolicy<R>
,Fallback<R>
,RateLimiter<R>
,RetryPolicy<R>
,Timeout<R>
- All Known Implementing Classes:
BulkheadImpl
,CircuitBreakerImpl
,FallbackImpl
,RateLimiterImpl
,RetryPolicyImpl
,TimeoutImpl
public interface Policy<R>
A policy for handling executions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PolicyConfig<R>
getConfig()
Returns the policy config.PolicyExecutor<R>
toExecutor(int policyIndex)
Returns aPolicyExecutor
capable of handling an execution for the Policy.
-
-
-
Method Detail
-
getConfig
PolicyConfig<R> getConfig()
Returns the policy config.
-
toExecutor
PolicyExecutor<R> toExecutor(int policyIndex)
Returns aPolicyExecutor
capable of handling an execution for the Policy.
-
-