Package io.vertx.mutiny.circuitbreaker
Class RetryPolicy
java.lang.Object
io.vertx.mutiny.circuitbreaker.RetryPolicy
- All Implemented Interfaces:
MutinyDelegate
A policy for retry execution.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRetryPolicy
(io.vertx.circuitbreaker.RetryPolicy delegate) RetryPolicy
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryPolicy
constantDelay
(long delay) long
boolean
static RetryPolicy
exponentialDelayWithJitter
(long initialDelay, long maxDelay) io.vertx.circuitbreaker.RetryPolicy
int
hashCode()
static RetryPolicy
linearDelay
(long initialDelay, long maxDelay) static RetryPolicy
newInstance
(io.vertx.circuitbreaker.RetryPolicy arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
RetryPolicy
public RetryPolicy(io.vertx.circuitbreaker.RetryPolicy delegate) -
RetryPolicy
-
-
Method Details
-
getDelegate
public io.vertx.circuitbreaker.RetryPolicy getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
constantDelay
- Parameters:
delay
- the constant delay in milliseconds- Returns:
-
linearDelay
- Parameters:
initialDelay
- the initial delay in millisecondsmaxDelay
- maximum delay in milliseconds- Returns:
-
exponentialDelayWithJitter
- Parameters:
initialDelay
- the initial delay in millisecondsmaxDelay
- maximum delay in milliseconds- Returns:
-
delay
- 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
-