|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ReliableMessagingFeature.BackoffAlgorithm>
com.sun.xml.ws.rx.rm.api.ReliableMessagingFeature.BackoffAlgorithm
public static enum ReliableMessagingFeature.BackoffAlgorithm
Defines the enumeration of all possible backoff algortihms that can be applied for to message retransmission.
BackoffAlgorithm#LINEAR,
EXPONENTIAL| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ReliableMessagingFeature.BackoffAlgorithm CONSTANT
ReliableMessagingFeature.BackoffAlgorithmpublic static final ReliableMessagingFeature.BackoffAlgorithm EXPONENTIAL
ReliableMessagingFeature.BackoffAlgorithm| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic static ReliableMessagingFeature.BackoffAlgorithm parse(String name)
public static ReliableMessagingFeature.BackoffAlgorithm getDefault()
CONSTANT.ReliableMessagingFeature.BackoffAlgorithm
public abstract long getDelayInMillis(int resendAttemptNumber,
long baseRate)
resendAttemptNumber - number of the resend attempt for a messagebaseRate - base resend interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||