public class AmqpRetryOptions extends Object
| Constructor and Description |
|---|
AmqpRetryOptions()
Creates an instance with the default retry options set.
|
AmqpRetryOptions(AmqpRetryOptions retryOptions)
Creates an instance configured with
retryOptions. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Duration |
getDelay()
Gets the delay between retry attempts for a fixed approach or the delay on which to base calculations for a
backoff-approach.
|
Duration |
getMaxDelay()
Gets the maximum permissible delay between retry attempts.
|
int |
getMaxRetries()
The maximum number of retry attempts before considering the associated operation to have failed.
|
AmqpRetryMode |
getMode()
Gets the approach to use for calculating retry delays.
|
Duration |
getTryTimeout()
Gets the maximum duration to wait for completion of a single attempt, whether the initial attempt or a retry.
|
int |
hashCode() |
AmqpRetryOptions |
setDelay(Duration delay)
Gets the delay between retry attempts for a fixed approach or the delay on which to base calculations for a
backoff-approach.
|
AmqpRetryOptions |
setMaxDelay(Duration maximumDelay)
Sets the maximum permissible delay between retry attempts.
|
AmqpRetryOptions |
setMaxRetries(int numberOfRetries)
Sets the maximum number of retry attempts before considering the associated operation to have failed.
|
AmqpRetryOptions |
setMode(AmqpRetryMode retryMode)
Sets the approach to use for calculating retry delays.
|
AmqpRetryOptions |
setTryTimeout(Duration tryTimeout)
Sets the maximum duration to wait for completion of a single attempt, whether the initial attempt or a retry.
|
public AmqpRetryOptions()
public AmqpRetryOptions(AmqpRetryOptions retryOptions)
retryOptions. This is not thread-safe.retryOptions - Retry options to configure new instance with.NullPointerException - if retryOptions is null.public AmqpRetryOptions setMode(AmqpRetryMode retryMode)
retryMode - The retry approach to use for calculating delays.AmqpRetryOptions object.public AmqpRetryOptions setMaxRetries(int numberOfRetries)
numberOfRetries - The maximum number of retry attempts.AmqpRetryOptions object.public AmqpRetryOptions setDelay(Duration delay)
delay - The delay between retry attempts.AmqpRetryOptions object.public AmqpRetryOptions setMaxDelay(Duration maximumDelay)
maximumDelay - The maximum permissible delay between retry attempts.AmqpRetryOptions object.public AmqpRetryOptions setTryTimeout(Duration tryTimeout)
tryTimeout - The maximum duration to wait for completion.AmqpRetryOptions object.public AmqpRetryMode getMode()
public int getMaxRetries()
public Duration getDelay()
public Duration getMaxDelay()
public Duration getTryTimeout()
Copyright © 2020 Microsoft Corporation. All rights reserved.