Class RetryPolicyImpl<R>
java.lang.Object
dev.failsafe.internal.RetryPolicyImpl<R>
- Type Parameters:
R- result type
- All Implemented Interfaces:
Policy<R>, RetryPolicy<R>, DelayablePolicy<R>, FailurePolicy<R>
public class RetryPolicyImpl<R>
extends Object
implements RetryPolicy<R>, FailurePolicy<R>, DelayablePolicy<R>
A
RetryPolicy implementation.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theRetryPolicyConfigthat the RetryPolicy was built with.booleanisAbortable(R result, Throwable failure) Returns whether an execution result can be aborted given the configured abort conditions.toExecutor(int policyIndex) Returns aPolicyExecutorcapable of handling an execution for the Policy.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DelayablePolicy
computeDelayMethods inherited from interface FailurePolicy
isFailure
-
Field Details
-
config
-
-
Constructor Details
-
RetryPolicyImpl
-
-
Method Details
-
getConfig
Description copied from interface:RetryPolicyReturns theRetryPolicyConfigthat the RetryPolicy was built with.- Specified by:
getConfigin interfaceDelayablePolicy<R>- Specified by:
getConfigin interfaceFailurePolicy<R>- Specified by:
getConfigin interfacePolicy<R>- Specified by:
getConfigin interfaceRetryPolicy<R>
-
isAbortable
-
toExecutor
Description copied from interface:PolicyReturns aPolicyExecutorcapable of handling an execution for the Policy.- Specified by:
toExecutorin interfacePolicy<R>
-