Package ratpack.exec.util.retry
Class FixedDelay
- java.lang.Object
-
- ratpack.exec.util.retry.FixedDelay
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<java.time.Duration>delay(java.lang.Integer attempt)Builds a promise wrapping a duration that will instruct the caller how long to wait between retries.static FixedDelayof(java.time.Duration duration)Builds a fixed duration delay.
-
-
-
Method Detail
-
of
public static FixedDelay of(java.time.Duration duration)
Builds a fixed duration delay.- Parameters:
duration- the fixed duration- Returns:
- a fixed delay
-
delay
public Promise<java.time.Duration> delay(java.lang.Integer attempt)
Builds a promise wrapping a duration that will instruct the caller how long to wait between retries.
-
-