FixedAmqpRetryPolicy Class
- java.
lang. Object - com.
azure. core. amqp. AmqpRetryPolicy - com.
azure. core. amqp. FixedAmqpRetryPolicy
- com.
- com.
public class FixedAmqpRetryPolicy
extends AmqpRetryPolicy
A policy to govern retrying of messaging operations in which the base delay between retries remains the same.
Constructor Summary
| Constructor | Description |
|---|---|
| FixedAmqpRetryPolicy(AmqpRetryOptions retryOptions) |
Creates an instance with the given retry options. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| protected Duration |
calculateRetryDelay(int retryCount, Duration baseDelay, Duration baseJitter, ThreadLocalRandom random)
Calculates the delay for a fixed backoff. |
| boolean | equals(Object obj) |
| int | hashCode() |
Methods inherited from AmqpRetryPolicy
Methods inherited from java.lang.Object
Constructor Details
FixedAmqpRetryPolicy
public FixedAmqpRetryPolicy(AmqpRetryOptions retryOptions)
Creates an instance with the given retry options.
Parameters:
Method Details
calculateRetryDelay
protected Duration calculateRetryDelay(int retryCount, Duration baseDelay, Duration baseJitter, ThreadLocalRandom random)
Calculates the delay for a fixed backoff.
Overrides:
FixedAmqpRetryPolicy.calculateRetryDelay(int retryCount, Duration baseDelay, Duration baseJitter, ThreadLocalRandom random)Parameters:
Returns:
equals
public boolean equals(Object obj)
Overrides:
FixedAmqpRetryPolicy.equals(Object obj)Parameters:
hashCode
public int hashCode()
Overrides:
FixedAmqpRetryPolicy.hashCode()