| Package | Description |
|---|---|
| javax.net.websocket |
| Modifier and Type | Field and Description |
|---|---|
SendResult |
SendResult.ERROR
There was a problem sending the message.
|
SendResult |
SendResult.OK
The message was transmitted ok.
|
| Modifier and Type | Method and Description |
|---|---|
Future<SendResult> |
RemoteEndpoint.sendBytes(byte[] data,
SendHandler completion)
Initiates the asynchronous transmission of a binary message.
|
Future<SendResult> |
RemoteEndpoint.sendObject(T o,
SendHandler handler)
Initiates the transmission of a custom developer object.
|
Future<SendResult> |
RemoteEndpoint.sendString(String text,
SendHandler completion)
Initiates the asynchronous transmission of a text message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SendHandler.setResult(SendResult result)
Called once the message has been transmitted.
|
Copyright © 2012 Oracle and/or its affiliates. All rights reserved.