Package com.tnsai.agents.groups
Enum Class GroupEvent.Type
- All Implemented Interfaces:
Serializable,Comparable<GroupEvent.Type>,Constable
- Enclosing class:
GroupEvent
Event types for group events.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCustom event typeNew leader electedLeader stepped downGroup lifecycle state changedAgent failed health checkAgent joined the groupAgent left the groupGeneral message broadcastPolicy changedRequest for informationResponse to a queryTask assigned to a memberTask completed by a memberTask failed -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupEvent.TypeReturns the enum constant of this class with the specified name.static GroupEvent.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MEMBER_JOINED
Agent joined the group -
MEMBER_LEFT
Agent left the group -
MEMBER_FAILED
Agent failed health check -
LEADER_ELECTED
New leader elected -
LEADER_RESIGNED
Leader stepped down -
TASK_ASSIGNED
Task assigned to a member -
TASK_COMPLETED
Task completed by a member -
TASK_FAILED
Task failed -
MESSAGE
General message broadcast -
QUERY
Request for information -
RESPONSE
Response to a query -
LIFECYCLE_CHANGED
Group lifecycle state changed -
POLICY_CHANGED
Policy changed -
CUSTOM
Custom event type
-
-
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
-