Enum Class SessionOrdering
- All Implemented Interfaces:
Serializable, Comparable<SessionOrdering>, Constable
The result of a comparison between two
InboundGroupSession types.
Tells us if one session can be considered to be better than another one. This is used when multiple sessions with the same session ID are received with varying degrees of trust and first known message indices.
- Author:
- François HERBRETEAU
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe first session has a better (lower) initial message index than the second one.The sessions are the same, with identical first known indices.The sessions are not connected and cannot be compared.The first session has a worse (higher) initial message index than the second one. -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionOrderingReturns the enum constant of this class with the specified name.static SessionOrdering[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUAL
The sessions are the same, with identical first known indices. -
BETTER
The first session has a better (lower) initial message index than the second one. -
WORSE
The first session has a worse (higher) initial message index than the second one. -
UNCONNECTED
The sessions are not connected and cannot be compared.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-