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
Modifier and TypeMethodDescriptionReturns the policy config.toExecutor(int policyIndex) Returns aPolicyExecutorcapable of handling an execution for the Policy.
-
Method Details
-
getConfig
PolicyConfig<R> getConfig()Returns the policy config. -
toExecutor
Returns aPolicyExecutorcapable of handling an execution for the Policy.
-