Package com.rabbitmq.stream
Class BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy
- java.lang.Object
-
- com.rabbitmq.stream.BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy
-
- All Implemented Interfaces:
BackOffDelayPolicy
- Enclosing interface:
- BackOffDelayPolicy
public static final class BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy extends Object implements BackOffDelayPolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.rabbitmq.stream.BackOffDelayPolicy
BackOffDelayPolicy.FixedWithInitialDelayAndTimeoutBackOffPolicy, BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy
-
-
Field Summary
-
Fields inherited from interface com.rabbitmq.stream.BackOffDelayPolicy
TIMEOUT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Durationdelay(int recoveryAttempt)Returns the delay to use for a given attempt.StringtoString()
-
-
-
Method Detail
-
delay
public Duration delay(int recoveryAttempt)
Description copied from interface:BackOffDelayPolicyReturns the delay to use for a given attempt.The policy can return the TIMEOUT constant to indicate that the task has reached a timeout.
- Specified by:
delayin interfaceBackOffDelayPolicy- Returns:
- the delay, TIMEOUT if the task should stop being retried
-
-