Package io.vertx.mutiny.circuitbreaker
Class RetryPolicy
- java.lang.Object
-
- io.vertx.mutiny.circuitbreaker.RetryPolicy
-
public class RetryPolicy extends Object
A policy for retry execution. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<RetryPolicy>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description RetryPolicy(io.vertx.circuitbreaker.RetryPolicy delegate)
RetryPolicy(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetryPolicy
constantDelay(long delay)
long
delay(Throwable failure, int retryCount)
boolean
equals(Object o)
static RetryPolicy
exponentialDelayWithJitter(long initialDelay, long maxDelay)
io.vertx.circuitbreaker.RetryPolicy
getDelegate()
int
hashCode()
static RetryPolicy
linearDelay(long initialDelay, long maxDelay)
static RetryPolicy
newInstance(io.vertx.circuitbreaker.RetryPolicy arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<RetryPolicy> __TYPE_ARG
-
-
Constructor Detail
-
RetryPolicy
public RetryPolicy(io.vertx.circuitbreaker.RetryPolicy delegate)
-
RetryPolicy
public RetryPolicy(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.circuitbreaker.RetryPolicy getDelegate()
-
constantDelay
public static RetryPolicy constantDelay(long delay)
- Parameters:
delay
- the constant delay in milliseconds- Returns:
-
linearDelay
public static RetryPolicy linearDelay(long initialDelay, long maxDelay)
- Parameters:
initialDelay
- the initial delay in millisecondsmaxDelay
- maximum delay in milliseconds- Returns:
-
exponentialDelayWithJitter
public static RetryPolicy exponentialDelayWithJitter(long initialDelay, long maxDelay)
- Parameters:
initialDelay
- the initial delay in millisecondsmaxDelay
- maximum delay in milliseconds- Returns:
-
delay
public long delay(Throwable failure, int retryCount)
- Parameters:
failure
- the failure passed to the operationPromise
retryCount
- the number of times operation has been retried already- Returns:
- a delay in milliseconds before retry is executed
-
newInstance
public static RetryPolicy newInstance(io.vertx.circuitbreaker.RetryPolicy arg)
-
-