Enum JGroupsRaftEventType
- java.lang.Object
-
- java.lang.Enum<JGroupsRaftEventType>
-
- org.apache.camel.component.jgroups.raft.JGroupsRaftEventType
-
- All Implemented Interfaces:
Serializable
,Comparable<JGroupsRaftEventType>
public enum JGroupsRaftEventType extends Enum<JGroupsRaftEventType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLY
CANDIDATE
FOLLOWER
LEADER
READ_CONTENT_FROM
WRITE_CONTENT_TO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JGroupsRaftEventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JGroupsRaftEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEADER
public static final JGroupsRaftEventType LEADER
-
FOLLOWER
public static final JGroupsRaftEventType FOLLOWER
-
CANDIDATE
public static final JGroupsRaftEventType CANDIDATE
-
APPLY
public static final JGroupsRaftEventType APPLY
-
READ_CONTENT_FROM
public static final JGroupsRaftEventType READ_CONTENT_FROM
-
WRITE_CONTENT_TO
public static final JGroupsRaftEventType WRITE_CONTENT_TO
-
-
Method Detail
-
values
public static JGroupsRaftEventType[] 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 (JGroupsRaftEventType c : JGroupsRaftEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JGroupsRaftEventType 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
-
-