Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<RetryPolicy> |
__TYPE_ARG |
Constructor and Description |
---|
RetryPolicy(Object delegate) |
RetryPolicy(RetryPolicy delegate) |
Modifier and Type | Method and Description |
---|---|
static RetryPolicy |
constantDelay(long delay)
Create a constant delay retry policy.
|
long |
delay(Throwable failure,
int retryCount)
Compute a delay in milliseconds before retry is executed.
|
boolean |
equals(Object o) |
static RetryPolicy |
exponentialDelayWithJitter(long initialDelay,
long maxDelay)
Create an exponential delay with jitter retry policy.
|
RetryPolicy |
getDelegate() |
int |
hashCode() |
static RetryPolicy |
linearDelay(long initialDelay,
long maxDelay)
Create a linear delay retry policy.
|
static RetryPolicy |
newInstance(RetryPolicy arg) |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<RetryPolicy> __TYPE_ARG
public RetryPolicy(RetryPolicy delegate)
public RetryPolicy(Object delegate)
public RetryPolicy getDelegate()
public static RetryPolicy constantDelay(long delay)
delay
- the constant delay in millisecondspublic static RetryPolicy linearDelay(long initialDelay, long maxDelay)
initialDelay
- the initial delay in millisecondsmaxDelay
- maximum delay in millisecondspublic static RetryPolicy exponentialDelayWithJitter(long initialDelay, long maxDelay)
Based on Full Jitter in Exponential Backoff And Jitter.
initialDelay
- the initial delay in millisecondsmaxDelay
- maximum delay in millisecondspublic long delay(Throwable failure, int retryCount)
failure
- the failure passed to the operation Promise
retryCount
- the number of times operation has been retried alreadypublic static RetryPolicy newInstance(RetryPolicy arg)
Copyright © 2024 Eclipse. All rights reserved.