public enum ReceiveMode extends Enum<ReceiveMode>
| Enum Constant and Description |
|---|
SELECTOR
Use NIO Selector for both A nad B feeds.
|
SPIN
Use non-blocking NIO channel in spin mode.
|
| Modifier and Type | Method and Description |
|---|---|
static ReceiveMode |
forValue(int value)
Convert int to enumeration.
|
int |
getValue()
Get int value.
|
static ReceiveMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReceiveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReceiveMode SELECTOR
public static final ReceiveMode SPIN
public static ReceiveMode[] values()
for (ReceiveMode c : ReceiveMode.values()) System.out.println(c);
public static ReceiveMode 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 int getValue()
public static ReceiveMode forValue(int value)
value - int value.Copyright © 2010–2020 Onix Solutions. All rights reserved.