public enum CometEventType extends Enum<CometEventType>
Enum Constant and Description |
---|
BEGIN
Connection established.
|
END
Connection terminated.
|
ERROR
Connection lost.
|
READ
Read from connection.
|
Modifier and Type | Method and Description |
---|---|
static CometEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CometEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CometEventType BEGIN
public static final CometEventType END
public static final CometEventType ERROR
public static final CometEventType READ
public static CometEventType 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 static CometEventType[] values()
for (CometEventType c : CometEventType.values()) System.out.println(c);
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.