|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.websocket.WsRemoteEndpointBase
org.apache.tomcat.websocket.WsRemoteEndpointAsync
public class WsRemoteEndpointAsync
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint |
---|
RemoteEndpoint.Async, RemoteEndpoint.Basic |
Field Summary |
---|
Fields inherited from class org.apache.tomcat.websocket.WsRemoteEndpointBase |
---|
base |
Method Summary | |
---|---|
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)
|
void |
sendObject(Object obj,
SendHandler completion)
|
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. |
Methods inherited from class org.apache.tomcat.websocket.WsRemoteEndpointBase |
---|
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.websocket.RemoteEndpoint |
---|
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowed |
Method Detail |
---|
public long getSendTimeout()
javax.websocket.RemoteEndpoint.Async
WebSocketContainer.getDefaultAsyncSendTimeout()
.
getSendTimeout
in interface RemoteEndpoint.Async
public void setSendTimeout(long timeout)
javax.websocket.RemoteEndpoint.Async
WebSocketContainer.getDefaultAsyncSendTimeout()
.
setSendTimeout
in interface RemoteEndpoint.Async
public void sendText(String text, SendHandler completion)
javax.websocket.RemoteEndpoint.Async
sendText
in interface RemoteEndpoint.Async
text
- The text message to sendcompletion
- Used to signal to the client when the message has
been sentpublic Future<Void> sendText(String text)
javax.websocket.RemoteEndpoint.Async
sendText
in interface RemoteEndpoint.Async
text
- The text message to sendpublic Future<Void> sendBinary(ByteBuffer data)
javax.websocket.RemoteEndpoint.Async
sendBinary
in interface RemoteEndpoint.Async
data
- The text message to sendpublic void sendBinary(ByteBuffer data, SendHandler completion)
javax.websocket.RemoteEndpoint.Async
sendBinary
in interface RemoteEndpoint.Async
data
- The text message to sendcompletion
- Used to signal to the client when the message has
been sentpublic Future<Void> sendObject(Object obj)
sendObject
in interface RemoteEndpoint.Async
public void sendObject(Object obj, SendHandler completion)
sendObject
in interface RemoteEndpoint.Async
|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |