Enum Class SwimGossipProtocol.GossipMessageType
java.lang.Object
java.lang.Enum<SwimGossipProtocol.GossipMessageType>
com.loomcache.server.cluster.SwimGossipProtocol.GossipMessageType
- All Implemented Interfaces:
Serializable, Comparable<SwimGossipProtocol.GossipMessageType>, Constable
- Enclosing class:
SwimGossipProtocol
public static enum SwimGossipProtocol.GossipMessageType
extends Enum<SwimGossipProtocol.GossipMessageType>
Gossip message types for the SWIM protocol.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAck: acknowledgment to a ping.Alive: indicate a member is alive (refutes suspicion).Dead: confirm a member is dead.Ping: heartbeat to check member availability.Ping-req: request other members to ping a target member.Suspect: indicate a member is suspected dead. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SwimGossipProtocol.GossipMessageType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PING
Ping: heartbeat to check member availability. -
PING_REQ
Ping-req: request other members to ping a target member. -
ACK
Ack: acknowledgment to a ping. -
SUSPECT
Suspect: indicate a member is suspected dead. -
ALIVE
Alive: indicate a member is alive (refutes suspicion). -
DEAD
Dead: confirm a member is dead.
-
-
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
-