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 RetryPolicyconstantDelay(long delay) longbooleanstatic RetryPolicyexponentialDelayWithJitter(long initialDelay, long maxDelay) io.vertx.circuitbreaker.RetryPolicyinthashCode()static RetryPolicylinearDelay(long initialDelay, long maxDelay) static RetryPolicynewInstance(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:
getDelegatein 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 operationPromiseretryCount- the number of times operation has been retried already- Returns:
- a delay in milliseconds before retry is executed
-
newInstance
-