public enum EndingAction extends Enum<EndingAction>
enum that defines actions that are performed by the selector
loop after ending a session.| Enum Constant and Description |
|---|
DEFAULT
No action is performed.
|
DIRTY_STOP
The selector loop is quickly stopped in a dirty way.
|
QUICK_STOP
The selector loop is quickly stopped.
|
STOP
The selector loop is gently stopped.
|
STOP_WHEN_EMPTY
The selector loop will be stopped once all its other sessions are closed.
|
| Modifier and Type | Method and Description |
|---|---|
static EndingAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndingAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndingAction DEFAULT
public static final EndingAction STOP
public static final EndingAction QUICK_STOP
public static final EndingAction DIRTY_STOP
public static final EndingAction STOP_WHEN_EMPTY
public static EndingAction[] values()
for (EndingAction c : EndingAction.values()) System.out.println(c);
public static EndingAction 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 nullCopyright © 2017–2022 SNF4J.ORG. All rights reserved.