Package septogeddon.pluginquery.http
Enum Class ListenerPriority
- All Implemented Interfaces:
Serializable
,Comparable<ListenerPriority>
,java.lang.constant.Constable
The priority of listener. It manages which listener should goes first.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether this priority is allowed to write a responsestatic ListenerPriority
Returns the enum constant of this class with the specified name.static ListenerPriority[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ
All listener that only read request and not writing any response should use this priority -
WRITE
All listener that read and/or write a response should use this priority
-
-
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
-
allowWrite
public boolean allowWrite()Determines whether this priority is allowed to write a response- Returns:
- true if
WRITE
-