public enum WebsocketSessionState extends Enum<WebsocketSessionState>
Enum Constant and Description |
---|
CLIENT_CLOSED
The session has ended as a result of the client sending a close frame
|
CLIENT_CLOSING
The client has sent a close frame.
|
DISCONNECTED
The connection was disconnected early (before a graceful shutdown could occur)
|
ERRORED
The session was ended due to an unexpected error
|
NOT_STARTED
The session has not started yet
|
OPEN
The session is running and messages can be written and received
|
SERVER_CLOSED
The connection has ended due to a server-initiated shutdown
|
SERVER_CLOSING
The server has sent a close frame to the client, but the connection is not yet closed
|
TIMED_OUT
The session was disconnected because no messages were received in the time period configured
with
WebSocketHandlerBuilder.withIdleReadTimeout(long, TimeUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
closing() |
boolean |
endState() |
static WebsocketSessionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebsocketSessionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebsocketSessionState NOT_STARTED
public static final WebsocketSessionState OPEN
public static final WebsocketSessionState ERRORED
public static final WebsocketSessionState CLIENT_CLOSED
public static final WebsocketSessionState CLIENT_CLOSING
public static final WebsocketSessionState SERVER_CLOSING
public static final WebsocketSessionState SERVER_CLOSED
public static final WebsocketSessionState DISCONNECTED
public static final WebsocketSessionState TIMED_OUT
WebSocketHandlerBuilder.withIdleReadTimeout(long, TimeUnit)
public static WebsocketSessionState[] values()
for (WebsocketSessionState c : WebsocketSessionState.values()) System.out.println(c);
public static WebsocketSessionState 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 boolean endState()
public boolean closing()
Copyright © 2017–2021. All rights reserved.