Enum Class ListenerPriority

java.lang.Object
java.lang.Enum<ListenerPriority>
septogeddon.pluginquery.http.ListenerPriority
All Implemented Interfaces:
Serializable, Comparable<ListenerPriority>, java.lang.constant.Constable

public enum ListenerPriority extends Enum<ListenerPriority>
The priority of listener. It manages which listener should goes first.
  • Enum Constant Details

    • READ

      public static final ListenerPriority READ
      All listener that only read request and not writing any response should use this priority
    • WRITE

      public static final ListenerPriority WRITE
      All listener that read and/or write a response should use this priority
  • Method Details

    • values

      public static ListenerPriority[] 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 ListenerPriority 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
    • allowWrite

      public boolean allowWrite()
      Determines whether this priority is allowed to write a response
      Returns:
      true if WRITE