Package discord4j.gateway.retry
Class GatewayStateChange
- java.lang.Object
-
- discord4j.gateway.retry.GatewayStateChange
-
- All Implemented Interfaces:
Dispatch
,PayloadData
public class GatewayStateChange extends Object implements Dispatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GatewayStateChange.State
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
connected
public static GatewayStateChange connected()
-
disconnected
public static GatewayStateChange disconnected()
-
retryStarted
public static GatewayStateChange retryStarted(Duration nextAttemptBackoff)
-
retrySucceeded
public static GatewayStateChange retrySucceeded(int currentAttempt)
-
retryFailed
public static GatewayStateChange retryFailed(int currentAttempt, Duration nextAttemptBackoff)
-
getState
public GatewayStateChange.State getState()
-
getCurrentAttempt
public int getCurrentAttempt()
-
-