public static interface RemoteEndpoint.Async extends RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic| Modifier and Type | Method and Description | 
|---|---|
| long | getSendTimeout()Obtain the timeout (in milliseconds) for sending a message
 asynchronously. | 
| Future<Void> | sendBinary(ByteBuffer data)Send the message asynchronously, using the Future to signal to the client
 when the message has been sent. | 
| void | sendBinary(ByteBuffer data,
          SendHandler completion)Send the message asynchronously, using the SendHandler to signal to the
 client when the message has been sent. | 
| Future<Void> | sendObject(Object obj)Encodes object as a message and sends it asynchronously, using the
 Future to signal to the client when the message has been sent. | 
| void | sendObject(Object obj,
          SendHandler completion)Encodes object as a message and sends it asynchronously, using the
 SendHandler to signal to the client when the message has been sent. | 
| Future<Void> | sendText(String text)Send the message asynchronously, using the Future to signal to the
 client when the message has been sent. | 
| void | sendText(String text,
        SendHandler completion)Send the message asynchronously, using the SendHandler to signal to the
 client when the message has been sent. | 
| void | setSendTimeout(long timeout)Set the timeout (in milliseconds) for sending a message
 asynchronously. | 
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowedlong getSendTimeout()
WebSocketContainer.getDefaultAsyncSendTimeout().void setSendTimeout(long timeout)
WebSocketContainer.getDefaultAsyncSendTimeout().timeout - The new timeout for sending messages asynchronously
                  in milliseconds. A non-positive value means an
                  infinite timeout.void sendText(String text, SendHandler completion)
text - The text message to sendcompletion - Used to signal to the client when the message has
                      been sentFuture<Void> sendText(String text)
text - The text message to sendFuture<Void> sendBinary(ByteBuffer data)
data - The text message to sendIllegalArgumentException - if data is null.void sendBinary(ByteBuffer data, SendHandler completion)
data - The text message to sendcompletion - Used to signal to the client when the message has
                      been sentIllegalArgumentException - if data or completion
                      is null.Future<Void> sendObject(Object obj)
obj - The object to be sent.IllegalArgumentException - if obj is null.void sendObject(Object obj, SendHandler completion)
obj - The object to be sent.completion - Used to signal to the client when the message has
                      been sentIllegalArgumentException - if obj or
                      completion is null.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.