Package dev.failsafe.internal
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 theRetryPolicyConfig
that the RetryPolicy was built with.boolean
isAbortable
(R result, Throwable failure) Returns whether an execution result can be aborted given the configured abort conditions.toExecutor
(int policyIndex) Returns aPolicyExecutor
capable of handling an execution for the Policy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.failsafe.spi.DelayablePolicy
computeDelay
Methods inherited from interface dev.failsafe.spi.FailurePolicy
isFailure
-
Field Details
-
config
-
-
Constructor Details
-
RetryPolicyImpl
-
-
Method Details
-
getConfig
Description copied from interface:RetryPolicy
Returns theRetryPolicyConfig
that the RetryPolicy was built with.- Specified by:
getConfig
in interfaceDelayablePolicy<R>
- Specified by:
getConfig
in interfaceFailurePolicy<R>
- Specified by:
getConfig
in interfacePolicy<R>
- Specified by:
getConfig
in interfaceRetryPolicy<R>
-
isAbortable
Returns whether an execution result can be aborted given the configured abort conditions.- See Also:
-
toExecutor
Description copied from interface:Policy
Returns aPolicyExecutor
capable of handling an execution for the Policy.- Specified by:
toExecutor
in interfacePolicy<R>
-