public enum Event extends Enum<Event>
Enum Constant and Description |
---|
CLOSE
This event is fired when the connection gets closed.
|
ERROR
This event is fired when unexpected error happens.
|
HEADERS
This event is fire when the response's headers is received.
|
MESSAGE
This event is fired every time a new message is received.
|
MESSAGE_BYTES
This event is fire when the response's bytes are received.
|
OPEN
This event is fired when the connection is open.
|
REOPENED
This event is fired every time the connection re-opened
|
STATUS
This event is fire when the response's status is received.
|
TRANSPORT
This event is fire when the connection has been established.
|
Modifier and Type | Method and Description |
---|---|
static Event |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Event OPEN
public static final Event CLOSE
public static final Event MESSAGE
public static final Event REOPENED
public static final Event ERROR
public static final Event STATUS
public static final Event HEADERS
public static final Event MESSAGE_BYTES
public static final Event TRANSPORT
public static Event[] values()
for (Event c : Event.values()) System.out.println(c);
public static Event 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 © 2015. All Rights Reserved.