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.Policypublic void pause()
pause in interface Retry.Policyprotected long computeDelay()
Copyright © 2019 Nuxeo. All rights reserved.