Enum Class GroupEvent.Type

java.lang.Object
java.lang.Enum<GroupEvent.Type>
com.tnsai.agents.groups.GroupEvent.Type
All Implemented Interfaces:
Serializable, Comparable<GroupEvent.Type>, Constable
Enclosing class:
GroupEvent

public static enum GroupEvent.Type extends Enum<GroupEvent.Type>
Event types for group events.
  • Enum Constant Details

    • MEMBER_JOINED

      public static final GroupEvent.Type MEMBER_JOINED
      Agent joined the group
    • MEMBER_LEFT

      public static final GroupEvent.Type MEMBER_LEFT
      Agent left the group
    • MEMBER_FAILED

      public static final GroupEvent.Type MEMBER_FAILED
      Agent failed health check
    • LEADER_ELECTED

      public static final GroupEvent.Type LEADER_ELECTED
      New leader elected
    • LEADER_RESIGNED

      public static final GroupEvent.Type LEADER_RESIGNED
      Leader stepped down
    • TASK_ASSIGNED

      public static final GroupEvent.Type TASK_ASSIGNED
      Task assigned to a member
    • TASK_COMPLETED

      public static final GroupEvent.Type TASK_COMPLETED
      Task completed by a member
    • TASK_FAILED

      public static final GroupEvent.Type TASK_FAILED
      Task failed
    • MESSAGE

      public static final GroupEvent.Type MESSAGE
      General message broadcast
    • QUERY

      public static final GroupEvent.Type QUERY
      Request for information
    • RESPONSE

      public static final GroupEvent.Type RESPONSE
      Response to a query
    • LIFECYCLE_CHANGED

      public static final GroupEvent.Type LIFECYCLE_CHANGED
      Group lifecycle state changed
    • POLICY_CHANGED

      public static final GroupEvent.Type POLICY_CHANGED
      Policy changed
    • CUSTOM

      public static final GroupEvent.Type CUSTOM
      Custom event type
  • Method Details

    • values

      public static GroupEvent.Type[] 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

      public static GroupEvent.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null