public static enum UndertowConstants.EventType extends Enum<UndertowConstants.EventType>
UndertowConsumer
sends to the Camel route.Enum Constant and Description |
---|
ONCLOSE
A peer has disconnected.
|
ONERROR
Unused in Undertow component.
|
ONOPEN
A new peer has connected.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static UndertowConstants.EventType |
ofCode(int code) |
static UndertowConstants.EventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UndertowConstants.EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UndertowConstants.EventType ONOPEN
public static final UndertowConstants.EventType ONCLOSE
public static final UndertowConstants.EventType ONERROR
public static UndertowConstants.EventType[] values()
for (UndertowConstants.EventType c : UndertowConstants.EventType.values()) System.out.println(c);
public static UndertowConstants.EventType 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 getCode()
UndertowConstants.EventType
. Kept for compatibility with Camel websocket
component.public static UndertowConstants.EventType ofCode(int code)
Apache Camel