Uses of Class
jakarta.websocket.CloseReason
-
Packages that use CloseReason Package Description jakarta.websocket This package contains all the Jakarta WebSocket APIs common to both the client and server side.org.glassfish.tyrus.client Common Client.org.glassfish.tyrus.core Core classes.org.glassfish.tyrus.core.cluster Cluster relates classes and interfaces.org.glassfish.tyrus.core.frame WebSocket frame representations.org.glassfish.tyrus.spi Tyrus SPI. -
-
Uses of CloseReason in jakarta.websocket
Methods in jakarta.websocket with parameters of type CloseReason Modifier and Type Method Description void
Session. close(CloseReason closeReason)
Close the current conversation, giving a reason for the closure.void
Endpoint. onClose(Session session, CloseReason closeReason)
This method is called immediately prior to the session with the remote peer being closed. -
Uses of CloseReason in org.glassfish.tyrus.client
Methods in org.glassfish.tyrus.client with parameters of type CloseReason Modifier and Type Method Description boolean
ClientManager.ReconnectHandler. onDisconnect(CloseReason closeReason)
Called afterOnClose
annotated method (orEndpoint.onClose(jakarta.websocket.Session, jakarta.websocket.CloseReason)
is invoked. -
Uses of CloseReason in org.glassfish.tyrus.core
Methods in org.glassfish.tyrus.core that return CloseReason Modifier and Type Method Description static CloseReason
CloseReasons. create(CloseReason.CloseCode closeCode, java.lang.String reasonPhrase)
CloseReason
CloseReasons. getCloseReason()
Get close reason.CloseReason
ProtocolException. getCloseReason()
CloseReason
Utf8DecodingException. getCloseReason()
abstract CloseReason
WebSocketException. getCloseReason()
Get close reason.Methods in org.glassfish.tyrus.core with parameters of type CloseReason Modifier and Type Method Description void
TyrusRemoteEndpoint. close(CloseReason cr)
void
TyrusSession. close(CloseReason closeReason)
void
TyrusWebSocket. close(CloseReason closeReason)
Closes thisTyrusWebSocket
using theCloseReason
.void
AnnotatedEndpoint. onClose(Session session, CloseReason closeReason)
void
TyrusEndpointWrapper.SessionListener. onClose(TyrusSession session, CloseReason closeReason)
Invoked afterOnClose
annotated method orEndpoint.onClose(jakarta.websocket.Session, jakarta.websocket.CloseReason)
execution. -
Uses of CloseReason in org.glassfish.tyrus.core.cluster
Methods in org.glassfish.tyrus.core.cluster with parameters of type CloseReason Modifier and Type Method Description abstract java.util.concurrent.Future<java.lang.Void>
ClusterContext. close(java.lang.String sessionId, CloseReason closeReason)
Close remote session with customCloseReason
.void
RemoteSession. close(CloseReason closeReason)
Close the current conversation, giving a reason for the closure.void
SessionEventListener. onClose(CloseReason closeReason)
Invoked on session close event. -
Uses of CloseReason in org.glassfish.tyrus.core.frame
Methods in org.glassfish.tyrus.core.frame that return CloseReason Modifier and Type Method Description CloseReason
CloseFrame. getCloseReason()
Get close reason.Constructors in org.glassfish.tyrus.core.frame with parameters of type CloseReason Constructor Description CloseFrame(CloseReason closeReason)
Constructor. -
Uses of CloseReason in org.glassfish.tyrus.spi
Methods in org.glassfish.tyrus.spi with parameters of type CloseReason Modifier and Type Method Description void
Connection. close(CloseReason reason)
Notifies tyrus that underlying transport is closing the connection.void
Connection.CloseListener. close(CloseReason reason)
Tyrus notifies that logical connection is closed.
-