public class ExponentialDelayReconnector extends Object implements Reconnector
| Modifier and Type | Field and Description |
|---|---|
static double |
WAIT_MILLIS |
| Constructor and Description |
|---|
ExponentialDelayReconnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorHistory(long timestamp) |
void |
clearErrorHistory() |
boolean |
enableReconnection(long timestamp) |
boolean |
isErrorHistoryEmpty() |
public static final double WAIT_MILLIS
public void addErrorHistory(long timestamp)
addErrorHistory in interface Reconnectorpublic boolean isErrorHistoryEmpty()
isErrorHistoryEmpty in interface Reconnectorpublic void clearErrorHistory()
clearErrorHistory in interface Reconnectorpublic boolean enableReconnection(long timestamp)
enableReconnection in interface ReconnectorCopyright © 2011-2017. All Rights Reserved.