Enum EventProcessor.State
- java.lang.Object
-
- java.lang.Enum<EventProcessor.State>
-
- org.glassfish.jersey.media.sse.internal.EventProcessor.State
-
- All Implemented Interfaces:
Serializable,Comparable<EventProcessor.State>
- Enclosing class:
- EventProcessor
public static enum EventProcessor.State extends Enum<EventProcessor.State>
Event processor state, which is shared with the owner (to be able to control bootstrap and shutdown).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventProcessor.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static EventProcessor.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READY
public static final EventProcessor.State READY
Ready to connect.
-
OPEN
public static final EventProcessor.State OPEN
Connection established, events can be received.
-
CLOSED
public static final EventProcessor.State CLOSED
Closed, won't receive any events.
-
-
Method Detail
-
values
public static EventProcessor.State[] 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 (EventProcessor.State c : EventProcessor.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventProcessor.State 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
-
-