Package org.nuxeo.ecm.core.redis.retry
Class ExponentialBackofDelay
- java.lang.Object
-
- org.nuxeo.ecm.core.redis.retry.SimpleDelay
-
- org.nuxeo.ecm.core.redis.retry.ExponentialBackofDelay
-
- All Implemented Interfaces:
Retry.Policy
public class ExponentialBackofDelay extends SimpleDelay
-
-
Field Summary
Fields Modifier and Type Field Description protected int
attempt
-
Fields inherited from class org.nuxeo.ecm.core.redis.retry.SimpleDelay
base, delay, elapsed
-
-
Constructor Summary
Constructors Constructor Description ExponentialBackofDelay(int base, int delay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
computeDelay()
-
Methods inherited from class org.nuxeo.ecm.core.redis.retry.SimpleDelay
allow, pause, toString
-
-
-
-
Method Detail
-
computeDelay
protected long computeDelay()
- Overrides:
computeDelay
in classSimpleDelay
-
-