public static enum SocketWrapperBase.BlockingMode extends Enum<SocketWrapperBase.BlockingMode>
Enum Constant and Description |
---|
BLOCK
The operation will block until completed.
|
CLASSIC
The operation will not block.
|
NON_BLOCK
The operation will not block.
|
SEMI_BLOCK
The operation will block until pending operations are completed, but
will not block after performing it.
|
Modifier and Type | Method and Description |
---|---|
static SocketWrapperBase.BlockingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketWrapperBase.BlockingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketWrapperBase.BlockingMode CLASSIC
public static final SocketWrapperBase.BlockingMode NON_BLOCK
public static final SocketWrapperBase.BlockingMode SEMI_BLOCK
public static final SocketWrapperBase.BlockingMode BLOCK
public static SocketWrapperBase.BlockingMode[] values()
for (SocketWrapperBase.BlockingMode c : SocketWrapperBase.BlockingMode.values()) System.out.println(c);
public static SocketWrapperBase.BlockingMode 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 © 2000-2020 Apache Software Foundation. All Rights Reserved.