public class SimpleDelay extends Object implements Retry.Policy
Modifier and Type | Field and Description |
---|---|
protected int |
base |
protected long |
delay |
protected int |
elapsed |
Constructor and Description |
---|
SimpleDelay(int base,
int delay) |
Modifier and Type | Method and Description |
---|---|
boolean |
allow() |
protected long |
computeDelay() |
void |
pause() |
String |
toString() |
protected final int base
protected final long delay
protected int elapsed
public SimpleDelay(int base, int delay)
public boolean allow()
allow
in interface Retry.Policy
public void pause()
pause
in interface Retry.Policy
protected long computeDelay()
Copyright © 2018 Nuxeo. All rights reserved.