Class SendResult
java.lang.Object
jakarta.websocket.SendResult
Represents the result of an asynchronous WebSocket message send operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the exception that occurred during the send operation, ornullif the operation was successful.booleanisOK()Returns whether the send operation was successful.
-
Constructor Details
-
SendResult
-
SendResult
public SendResult()
-
-
Method Details
-
getException
Returns the exception that occurred during the send operation, ornullif the operation was successful.- Returns:
- The exception, or
nullif successful
-
isOK
public boolean isOK()Returns whether the send operation was successful.- Returns:
trueif the send was successful,falseotherwise
-