public enum ServiceEvent extends Enum<ServiceEvent>
ServiceEvent
enumeration contains the events that
are dispatched processing a WebSocket. To see how a WebSocket is
behaving and to gather performance statistics the service events
can be intercepted using a custom TraceAnalyzer
object.TraceAnalyzer
Enum Constant and Description |
---|
DISPATCH_SOCKET
This event is dispatched when a WebSocket is dispatched.
|
ERROR
This event is dispatched when an error occurs with a WebSocket.
|
OPEN_SOCKET
This event is dispatched when a WebSocket is connected.
|
PING_EXPIRED
This indicates that there has been no response to a ping.
|
PONG_RECEIVED
This indicates that there has been no response to a ping.
|
READ_FRAME
This event is dispatched when a frame is read from a WebSocket.
|
READ_PING
This event is dispatched when the WebSocket receives a ping.
|
READ_PONG
This event is dispatched when the WebSocket receives a pong.
|
TERMINATE_SOCKET
This event is dispatched when a WebSocket channel is closed.
|
WRITE_FRAME
This event is dispatched when a frame is sent over a WebSocket.
|
WRITE_HEADER
This event is dispatched when the response handshake is sent.
|
WRITE_PING
This event is dispatched when a ping is sent over a WebSocket.
|
WRITE_PONG
This event is dispatched when a pong is sent over a WebSocket.
|
Modifier and Type | Method and Description |
---|---|
static ServiceEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceEvent OPEN_SOCKET
public static final ServiceEvent DISPATCH_SOCKET
public static final ServiceEvent TERMINATE_SOCKET
public static final ServiceEvent WRITE_HEADER
public static final ServiceEvent READ_PING
public static final ServiceEvent WRITE_PING
public static final ServiceEvent READ_PONG
public static final ServiceEvent WRITE_PONG
public static final ServiceEvent READ_FRAME
public static final ServiceEvent WRITE_FRAME
public static final ServiceEvent PING_EXPIRED
public static final ServiceEvent PONG_RECEIVED
public static final ServiceEvent ERROR
public static ServiceEvent[] values()
for (ServiceEvent c : ServiceEvent.values()) System.out.println(c);
public static ServiceEvent 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 © 2018. All rights reserved.