Enum GossipProtocol.Type
- java.lang.Object
-
- java.lang.Enum<GossipProtocol.Type>
-
- io.hekate.cluster.internal.gossip.GossipProtocol.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<GossipProtocol.Type>
- Enclosing class:
- GossipProtocol
public static enum GossipProtocol.Type extends Enum<GossipProtocol.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GOSSIP_UPDATE
GOSSIP_UPDATE_DIGEST
HEARTBEAT_REPLY
HEARTBEAT_REQUEST
JOIN_ACCEPT
JOIN_REJECT
JOIN_REQUEST
LONG_TERM_CONNECT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GossipProtocol.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static GossipProtocol.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LONG_TERM_CONNECT
public static final GossipProtocol.Type LONG_TERM_CONNECT
-
GOSSIP_UPDATE
public static final GossipProtocol.Type GOSSIP_UPDATE
-
GOSSIP_UPDATE_DIGEST
public static final GossipProtocol.Type GOSSIP_UPDATE_DIGEST
-
JOIN_REQUEST
public static final GossipProtocol.Type JOIN_REQUEST
-
JOIN_ACCEPT
public static final GossipProtocol.Type JOIN_ACCEPT
-
JOIN_REJECT
public static final GossipProtocol.Type JOIN_REJECT
-
HEARTBEAT_REQUEST
public static final GossipProtocol.Type HEARTBEAT_REQUEST
-
HEARTBEAT_REPLY
public static final GossipProtocol.Type HEARTBEAT_REPLY
-
-
Method Detail
-
values
public static GossipProtocol.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GossipProtocol.Type c : GossipProtocol.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GossipProtocol.Type valueOf(String name)
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
-
-