public static enum EventThread.RunState extends java.lang.Enum<EventThread.RunState>
EventThreadhas seven distinct states:
EventThreadwas instantiated but not yet started.
EventThreadis instantiated and
start()is executing but not yet completed.
EventThreadinstance was started but
EventThread.haltNow(boolean)have not yet been called.
EventThread.halt(boolean)was called and the the
EventThreadis processing existing enqueued events. No new events may be added.
EventThread.haltNow(boolean)was called; all enqueued events are ignored.
EventThreadhas exited the event processing thread and called the
EventThreadhas exited its
|Enum Constant and Description|
The thread is waiting for the queue to drain before halting.
The thread is stopping now.
The event thread has completed its clean up performed by the
The event thread is not yet started.
The thread is processing events.
The event thread is calling the subclass starting() method.
The event thread has stopped processing the event queue and has passed control to the subclass
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final EventThread.RunState NOT_STARTED
public static final EventThread.RunState STARTING
public static final EventThread.RunState RUNNING
public static final EventThread.RunState HALT_DRAIN
public static final EventThread.RunState HALT_NOW
public static final EventThread.RunState STOPPING
public static final EventThread.RunState HALTED
stoppingmethod and is no longer running. This thread may not be restarted.
public static EventThread.RunState values()
for (EventThread.RunState c : EventThread.RunState.values()) System.out.println(c);
public static EventThread.RunState valueOf(java.lang.String name)
name- the name of the enum constant to be returned.
java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
java.lang.NullPointerException- if the argument is null