|
WebSocket 1.0 - Apache Tomcat 7.0.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface RemoteEndpoint.Async
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint |
---|
RemoteEndpoint.Async, RemoteEndpoint.Basic |
Method Summary | |
---|---|
long |
getSendTimeout()
Obtain the timeout (in milliseconds) for sending a message asynchronously. |
java.util.concurrent.Future<java.lang.Void> |
sendBinary(java.nio.ByteBuffer data)
Send the message asynchronously, using the Future to signal to the client when the message has been sent. |
void |
sendBinary(java.nio.ByteBuffer data,
SendHandler completion)
Send the message asynchronously, using the SendHandler to signal to the client when the message has been sent. |
java.util.concurrent.Future<java.lang.Void> |
sendObject(java.lang.Object obj)
|
void |
sendObject(java.lang.Object obj,
SendHandler completion)
|
java.util.concurrent.Future<java.lang.Void> |
sendText(java.lang.String text)
Send the message asynchronously, using the Future to signal to the client when the message has been sent. |
void |
sendText(java.lang.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. |
Methods inherited from interface javax.websocket.RemoteEndpoint |
---|
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowed |
Method Detail |
---|
long getSendTimeout()
WebSocketContainer.getDefaultAsyncSendTimeout()
.
void setSendTimeout(long timeout)
WebSocketContainer.getDefaultAsyncSendTimeout()
.
void sendText(java.lang.String text, SendHandler completion)
text
- The text message to sendcompletion
- Used to signal to the client when the message has
been sentjava.util.concurrent.Future<java.lang.Void> sendText(java.lang.String text)
text
- The text message to sendjava.util.concurrent.Future<java.lang.Void> sendBinary(java.nio.ByteBuffer data)
data
- The text message to sendvoid sendBinary(java.nio.ByteBuffer data, SendHandler completion)
data
- The text message to sendcompletion
- Used to signal to the client when the message has
been sentjava.util.concurrent.Future<java.lang.Void> sendObject(java.lang.Object obj)
void sendObject(java.lang.Object obj, SendHandler completion)
|
WebSocket 1.0 - Apache Tomcat 7.0.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |