|
||||||||||
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.rm.ReliableMessagingFeature.BackoffAlgorithm
public static enum ReliableMessagingFeature.BackoffAlgorithm
This enumeration defines all possible backoff algortihms that can be applied for to message retransmission.
LINEAR
,
EXPONENTIAL
Enum Constant Summary | |
---|---|
EXPONENTIAL
This algorithm ensures that a message retransmission rate is multiplicatively decreased with each resend of the particular message. |
|
LINEAR
This algorithm ensures that a message retransmission rate remains constant at all times. |
Method Summary | |
---|---|
static ReliableMessagingFeature.BackoffAlgorithm |
getDefault()
Provides a default back-off algorithm value. |
abstract long |
nextResendTime(int resendAttemptNumber,
long baseRate)
Calculates the next possible scheduled resume time based on the resend attempt number. |
static ReliableMessagingFeature.BackoffAlgorithm |
valueOf(java.lang.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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ReliableMessagingFeature.BackoffAlgorithm LINEAR
ReliableMessagingFeature.BackoffAlgorithm
public static final ReliableMessagingFeature.BackoffAlgorithm EXPONENTIAL
ReliableMessagingFeature.BackoffAlgorithm
Method Detail |
---|
public static final ReliableMessagingFeature.BackoffAlgorithm[] values()
for(ReliableMessagingFeature.BackoffAlgorithm c : ReliableMessagingFeature.BackoffAlgorithm.values()) System.out.println(c);
public static ReliableMessagingFeature.BackoffAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static ReliableMessagingFeature.BackoffAlgorithm getDefault()
LINEAR
.ReliableMessagingFeature.BackoffAlgorithm
public abstract long nextResendTime(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 |