public static class RetryPolicy.Timed extends Object implements RetryPolicy
RetryPolicy.Exponential, RetryPolicy.ExponentialBuilder, RetryPolicy.Linear, RetryPolicy.Timed
Modifier and Type | Method and Description |
---|---|
Supplier<RetryDecision> |
newInstance(ClockSource clockSource)
Create a new instance of the policy.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exponential, linear, timed
public Supplier<RetryDecision> newInstance(ClockSource clockSource)
RetryPolicy
the provided instance may only be used by one thread at a time
newInstance
in interface RetryPolicy
clockSource
- clock source to use in the instanceCopyright © 2017. All rights reserved.