Enum ServiceEvent
- All Implemented Interfaces:
Serializable
,Comparable<ServiceEvent>
,java.lang.constant.Constable
The
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.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis event is dispatched when a WebSocket is dispatched.This event is dispatched when an error occurs with a WebSocket.This event is dispatched when a WebSocket is connected.This indicates that there has been no response to a ping.This indicates that there has been no response to a ping.This event is dispatched when a frame is read from a WebSocket.This event is dispatched when the WebSocket receives a ping.This event is dispatched when the WebSocket receives a pong.This event is dispatched when a WebSocket channel is closed.This event is dispatched when a frame is sent over a WebSocket.This event is dispatched when the response handshake is sent.This event is dispatched when a ping is sent over a WebSocket.This event is dispatched when a pong is sent over a WebSocket. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceEvent
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.
-
Enum Constant Details
-
OPEN_SOCKET
This event is dispatched when a WebSocket is connected. -
DISPATCH_SOCKET
This event is dispatched when a WebSocket is dispatched. -
TERMINATE_SOCKET
This event is dispatched when a WebSocket channel is closed. -
WRITE_HEADER
This event is dispatched when the response handshake is sent. -
READ_PING
This event is dispatched when the WebSocket receives a ping. -
WRITE_PING
This event is dispatched when a ping is sent over a WebSocket. -
READ_PONG
This event is dispatched when the WebSocket receives a pong. -
WRITE_PONG
This event is dispatched when a pong is sent over a WebSocket. -
READ_FRAME
This event is dispatched when a frame is read from a WebSocket. -
WRITE_FRAME
This event is dispatched when a frame is sent over a WebSocket. -
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. -
ERROR
This event is dispatched when an error occurs with a WebSocket.
-
-
Constructor Details
-
ServiceEvent
private ServiceEvent()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-