Package com.rabbitmq.client.amqp
Class BackOffDelayPolicy.FixedWithInitialDelayAndTimeoutBackOffPolicy
java.lang.Object
com.rabbitmq.client.amqp.BackOffDelayPolicy.FixedWithInitialDelayAndTimeoutBackOffPolicy
- All Implemented Interfaces:
BackOffDelayPolicy
- Enclosing interface:
BackOffDelayPolicy
public static final class BackOffDelayPolicy.FixedWithInitialDelayAndTimeoutBackOffPolicy
extends Object
implements BackOffDelayPolicy
Policy with an initial delay for the first attempt, then a fixed delay, and a timeout.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rabbitmq.client.amqp.BackOffDelayPolicy
BackOffDelayPolicy.FixedWithInitialDelayAndTimeoutBackOffPolicy, BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy
-
Field Summary
Fields inherited from interface com.rabbitmq.client.amqp.BackOffDelayPolicy
TIMEOUT
-
Method Summary
-
Method Details
-
delay
Description copied from interface:BackOffDelayPolicy
Returns 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:
delay
in interfaceBackOffDelayPolicy
- Parameters:
recoveryAttempt
- number of the recovery attempt- Returns:
- the delay, TIMEOUT if the task should stop being retried
-
toString
-