public class GatewayStateChange extends Object implements Dispatch
Modifier and Type | Class and Description |
---|---|
static class |
GatewayStateChange.State |
Modifier and Type | Method and Description |
---|---|
static GatewayStateChange |
connected() |
static GatewayStateChange |
disconnected() |
Duration |
getBackoff() |
int |
getCurrentAttempt() |
GatewayStateChange.State |
getState() |
static GatewayStateChange |
retryFailed(int currentAttempt,
Duration nextAttemptBackoff) |
static GatewayStateChange |
retryStarted(Duration nextAttemptBackoff) |
static GatewayStateChange |
retrySucceeded(int currentAttempt) |
String |
toString() |
public static GatewayStateChange connected()
public static GatewayStateChange disconnected()
public static GatewayStateChange retryStarted(Duration nextAttemptBackoff)
public static GatewayStateChange retrySucceeded(int currentAttempt)
public static GatewayStateChange retryFailed(int currentAttempt, Duration nextAttemptBackoff)
public GatewayStateChange.State getState()
public int getCurrentAttempt()