public class ExponentialBackOff extends Object implements Closeable
| Constructor and Description |
|---|
ExponentialBackOff(long startDelay,
long maxDelay,
boolean randomDelay,
Runnable checkCallback) |
public ExponentialBackOff(long startDelay,
long maxDelay,
boolean randomDelay,
Runnable checkCallback)
startDelay - the start delay in millisecondsmaxDelay - the max delay in millisecondsrandomDelay - true to randomise the delay between 0 and the current max delay ;
false to use the current max delay.checkCallback - the code to invoke when the current delay has elapsedpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void startChecks()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.