public enum EventLoopLifecycle extends Enum<EventLoopLifecycle>
possible transitions include:
+-------------------------------------------------+
| v
+---------+ +-----------+ +-----------+ +-----------+
| NEW |--->| STARTED |--->| STOPPING |--->| STOPPED |
+---------+ +-----------+ +-----------+ +-----------+
| Enum Constant and Description |
|---|
NEW
The event loop has been created but not yet started
|
STARTED
The event loop has been started but not yet stopped
|
STOPPED
The event loop has been stopped
|
STOPPING
Stop has been called, but some handlers are yet to complete
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStopped() |
static EventLoopLifecycle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventLoopLifecycle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventLoopLifecycle NEW
public static final EventLoopLifecycle STARTED
public static final EventLoopLifecycle STOPPING
public static final EventLoopLifecycle STOPPED
public static EventLoopLifecycle[] values()
for (EventLoopLifecycle c : EventLoopLifecycle.values()) System.out.println(c);
public static EventLoopLifecycle valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isStopped()
Copyright © 2024. All rights reserved.