Class SendResult
java.lang.Object
jakarta.websocket.SendResult
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Deprecated in WebSocket 2.2 and will be removed in a future version.SendResult(Session session) Create an instance for a successful message.SendResult(Session session, Throwable exception) Create an instance for an unsuccessful message.SendResult(Throwable exception) Deprecated.Deprecated in WebSocket 2.2 and will be removed in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionThe WebSocket session in which the session was sent.booleanisOK()
- 
Constructor Details- 
SendResult
- 
SendResultCreate an instance for a successful message.- Parameters:
- session- the WebSocket session in which the message was sent
 
- 
SendResultDeprecated.Deprecated in WebSocket 2.2 and will be removed in a future version. UseSendResult(Session, Throwable)as a replacement.Create an instance for an unsuccessful message.- Parameters:
- exception- The exception describing the failure when trying to send the message.
 
- 
SendResultDeprecated.Deprecated in WebSocket 2.2 and will be removed in a future version. UseSendResult(Session, Throwable)as a replacement.Create an instance for a successful message.
 
- 
- 
Method Details- 
getException
- 
isOKpublic boolean isOK()
- 
getSessionThe WebSocket session in which the session was sent.- Returns:
- the WebSocket session in which the session was sent or nullif not known.
 
 
-