Package discord4j.gateway.retry
Class GatewayRetrySpec
- java.lang.Object
-
- reactor.util.retry.Retry
-
- discord4j.gateway.retry.GatewayRetrySpec
-
public class GatewayRetrySpec extends Retry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class reactor.util.retry.Retry
Retry.RetrySignal
-
-
Field Summary
Fields Modifier and Type Field Description static List<Integer>
NON_RETRYABLE_STATUS_CODES
-
Fields inherited from class reactor.util.retry.Retry
retryContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GatewayRetrySpec
create(ReconnectOptions reconnectOptions, ReconnectContext reconnectContext)
GatewayRetrySpec
doBeforeRetry(Consumer<GatewayRetrySignal> doBeforeRetry)
Flux<Long>
generateCompanion(Flux<Retry.RetrySignal> t)
-
Methods inherited from class reactor.util.retry.Retry
backoff, fixedDelay, from, indefinitely, max, maxInARow, retryContext, withThrowable
-
-
-
-
Method Detail
-
create
public static GatewayRetrySpec create(ReconnectOptions reconnectOptions, ReconnectContext reconnectContext)
-
doBeforeRetry
public GatewayRetrySpec doBeforeRetry(Consumer<GatewayRetrySignal> doBeforeRetry)
-
generateCompanion
public Flux<Long> generateCompanion(Flux<Retry.RetrySignal> t)
- Specified by:
generateCompanion
in classRetry
-
-