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<Duration>
delay(Integer attempt)
Builds a promise wrapping a duration that will instruct the caller how long to wait between retries.static FixedDelay
of(Duration duration)
Builds a fixed duration delay.
-
-
-
Method Detail
-
of
public static FixedDelay of(Duration duration)
Builds a fixed duration delay.- Parameters:
duration
- the fixed duration- Returns:
- a fixed delay
-
-