Package discord4j.common.retry
Class ReconnectContext
java.lang.Object
discord4j.common.retry.ReconnectContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the attempt count, treating further calls tonext()
as brand new retry context.int
int
void
next()
Signal that the next retry attempt should be underway.void
reset()
Reset the attempt count, treating further calls tonext()
as new retry sequences.
-
Constructor Details
-
ReconnectContext
-
-
Method Details
-
next
public void next()Signal that the next retry attempt should be underway. -
reset
public void reset()Reset the attempt count, treating further calls tonext()
as new retry sequences. -
clear
public void clear()Clear the attempt count, treating further calls tonext()
as brand new retry context. -
getFirstBackoff
-
getMaxBackoffInterval
-
getAttempts
public int getAttempts() -
getResetCount
public int getResetCount()
-