Package org.nuxeo.ecm.core.redis.retry
Class SimpleDelay
- java.lang.Object
-
- org.nuxeo.ecm.core.redis.retry.SimpleDelay
-
- All Implemented Interfaces:
Retry.Policy
- Direct Known Subclasses:
ExponentialBackofDelay
public class SimpleDelay extends Object implements Retry.Policy
-
-
Constructor Summary
Constructors Constructor Description SimpleDelay(int base, int delay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allow()
protected long
computeDelay()
void
pause()
String
toString()
-
-
-
Method Detail
-
allow
public boolean allow()
- Specified by:
allow
in interfaceRetry.Policy
-
pause
public void pause()
- Specified by:
pause
in interfaceRetry.Policy
-
computeDelay
protected long computeDelay()
-
-