| Modifier and Type | Field and Description |
|---|---|
| private final Throwable | |
| private final boolean | |
| private final Session |
| Access | Constructor and Description |
|---|---|
| public | SendResult(Session
the WebSocket session in which the message was sent session, Throwable the exception causing a send failure. exception)Construct a SendResult carrying an exception. |
| public | SendResult(Session
the WebSocket session in which the message was sent session)Construct a SendResult signifying a successful send carrying no exception. |
| public | SendResult(Throwable
the exception causing a send failure. exception)
Deprecated
Deprecated in WebSocket 2.2 and will be removed in a future version.
Construct a SendResult carrying an exception. |
| public | SendResult()
Deprecated
Deprecated in WebSocket 2.2 and will be removed in a future version.
Construct a SendResult signifying a successful send carrying no exception. |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | Returns: the problem ornull if the send was successful.The problem sending the message. |
| public Session | Returns: the WebSocket session in which the session was sent ornull if not known.The WebSocket session in which the session was sent. |
| public boolean |
| exception | back to summary |
|---|---|
| private final Throwable exception | |
| isOK | back to summary |
|---|---|
| private final boolean isOK | |
| session | back to summary |
|---|---|
| private final Session session | |
| SendResult | back to summary |
|---|---|
| public SendResult(Session session, Throwable exception) Construct a SendResult carrying an exception. | |
| SendResult | back to summary |
|---|---|
| public SendResult(Session session) Construct a SendResult signifying a successful send carrying no exception.
| |
| SendResult | back to summary |
|---|---|
| public SendResult(Throwable exception)
Deprecated Deprecated in WebSocket 2.2 and will be removed in a future version. Use
Construct a SendResult carrying an exception.
| |
| SendResult | back to summary |
|---|---|
| public SendResult()
Deprecated Deprecated in WebSocket 2.2 and will be removed in a future version. Use
Construct a SendResult signifying a successful send carrying no exception.
| |
| getException | back to summary |
|---|---|
| public Throwable getException() The problem sending the message.
| |
| getSession | back to summary |
|---|---|
| public Session getSession() The WebSocket session in which the session was sent.
| |
| isOK | back to summary |
|---|---|
| public boolean isOK() Determines if this result is ok or not.
| |