public static enum ReliableMessagingFeature.BackoffAlgorithm extends Enum<ReliableMessagingFeature.BackoffAlgorithm>
BackoffAlgorithm#LINEAR,
EXPONENTIAL| Enum Constant and Description |
|---|
CONSTANT
This algorithm ensures that a message retransmission rate remains constant
at all times.
|
EXPONENTIAL
This algorithm ensures that a message retransmission rate is multiplicatively
decreased with each resend of the particular message.
|
| Modifier and Type | Method and Description |
|---|---|
static ReliableMessagingFeature.BackoffAlgorithm |
getDefault()
Provides a default back-off algorithm value.
|
abstract long |
getDelayInMillis(int resendAttemptNumber,
long baseRate)
Calculates the delay before the next possible scheduled resume time based on the resend
attempt number.
|
static ReliableMessagingFeature.BackoffAlgorithm |
parse(String name) |
static ReliableMessagingFeature.BackoffAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReliableMessagingFeature.BackoffAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReliableMessagingFeature.BackoffAlgorithm CONSTANT
public static final ReliableMessagingFeature.BackoffAlgorithm EXPONENTIAL
public static ReliableMessagingFeature.BackoffAlgorithm[] values()
for (ReliableMessagingFeature.BackoffAlgorithm c : ReliableMessagingFeature.BackoffAlgorithm.values()) System.out.println(c);
public static ReliableMessagingFeature.BackoffAlgorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ReliableMessagingFeature.BackoffAlgorithm parse(String name)
public static ReliableMessagingFeature.BackoffAlgorithm getDefault()
CONSTANT.ReliableMessagingFeature.BackoffAlgorithmpublic abstract long getDelayInMillis(int resendAttemptNumber,
long baseRate)
resendAttemptNumber - number of the resend attempt for a messagebaseRate - base resend intervalCopyright © 2005–2017 Oracle Corporation. All rights reserved.