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) |
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 © 2015 Nuxeo SA. All rights reserved.