Module org.glassfish.metro.wsit.api
Package com.sun.xml.ws.rx.rm.api
Enum ReliableMessagingFeature.BackoffAlgorithm
java.lang.Object
java.lang.Enum<ReliableMessagingFeature.BackoffAlgorithm>
com.sun.xml.ws.rx.rm.api.ReliableMessagingFeature.BackoffAlgorithm
- All Implemented Interfaces:
Serializable,Comparable<ReliableMessagingFeature.BackoffAlgorithm>
- Enclosing class:
ReliableMessagingFeature
public static enum ReliableMessagingFeature.BackoffAlgorithm
extends Enum<ReliableMessagingFeature.BackoffAlgorithm>
Defines the enumeration of all possible backoff algortihms that can be applied
for to message retransmission.
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis algorithm ensures that a message retransmission rate remains constant at all times.This algorithm ensures that a message retransmission rate is multiplicatively decreased with each resend of the particular message. -
Method Summary
Modifier and TypeMethodDescriptionProvides a default back-off algorithm value.abstract longgetDelayInMillis(int resendAttemptNumber, long baseRate) Calculates the delay before the next possible scheduled resume time based on the resend attempt number.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONSTANT
This algorithm ensures that a message retransmission rate remains constant at all times.- See Also:
-
EXPONENTIAL
This algorithm ensures that a message retransmission rate is multiplicatively decreased with each resend of the particular message.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
parse
-
getDefault
Provides a default back-off algorithm value.- Returns:
- a default back-off algorithm value. Currently returns
CONSTANT. - See Also:
-
getDelayInMillis
public abstract long getDelayInMillis(int resendAttemptNumber, long baseRate) Calculates the delay before the next possible scheduled resume time based on the resend attempt number.- Parameters:
resendAttemptNumber- number of the resend attempt for a messagebaseRate- base resend interval- Returns:
- next scheduled resume time
-