Class JsrAsyncRemote
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
-
- org.eclipse.jetty.websocket.jsr356.JsrAsyncRemote
-
- All Implemented Interfaces:
javax.websocket.RemoteEndpoint
,javax.websocket.RemoteEndpoint.Async
public class JsrAsyncRemote extends AbstractJsrRemote implements javax.websocket.RemoteEndpoint.Async
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
encoders, jettyRemote, session
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JsrAsyncRemote(JsrSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSendTimeout()
java.util.concurrent.Future<java.lang.Void>
sendBinary(java.nio.ByteBuffer data)
void
sendBinary(java.nio.ByteBuffer data, javax.websocket.SendHandler handler)
java.util.concurrent.Future<java.lang.Void>
sendObject(java.lang.Object data)
void
sendObject(java.lang.Object data, javax.websocket.SendHandler handler)
java.util.concurrent.Future<java.lang.Void>
sendText(java.lang.String text)
void
sendText(java.lang.String text, javax.websocket.SendHandler handler)
void
setSendTimeout(long timeoutmillis)
-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
assertMessageNotNull, assertSendHandlerNotNull, flushBatch, getBatchingAllowed, sendObjectViaFuture, sendPing, sendPong, setBatchingAllowed
-
-
-
-
Constructor Detail
-
JsrAsyncRemote
protected JsrAsyncRemote(JsrSession session)
-
-
Method Detail
-
getSendTimeout
public long getSendTimeout()
- Specified by:
getSendTimeout
in interfacejavax.websocket.RemoteEndpoint.Async
-
sendBinary
public java.util.concurrent.Future<java.lang.Void> sendBinary(java.nio.ByteBuffer data)
- Specified by:
sendBinary
in interfacejavax.websocket.RemoteEndpoint.Async
-
sendBinary
public void sendBinary(java.nio.ByteBuffer data, javax.websocket.SendHandler handler)
- Specified by:
sendBinary
in interfacejavax.websocket.RemoteEndpoint.Async
-
sendObject
public java.util.concurrent.Future<java.lang.Void> sendObject(java.lang.Object data)
- Specified by:
sendObject
in interfacejavax.websocket.RemoteEndpoint.Async
-
sendObject
public void sendObject(java.lang.Object data, javax.websocket.SendHandler handler)
- Specified by:
sendObject
in interfacejavax.websocket.RemoteEndpoint.Async
-
sendText
public java.util.concurrent.Future<java.lang.Void> sendText(java.lang.String text)
- Specified by:
sendText
in interfacejavax.websocket.RemoteEndpoint.Async
-
sendText
public void sendText(java.lang.String text, javax.websocket.SendHandler handler)
- Specified by:
sendText
in interfacejavax.websocket.RemoteEndpoint.Async
-
setSendTimeout
public void setSendTimeout(long timeoutmillis)
- Specified by:
setSendTimeout
in interfacejavax.websocket.RemoteEndpoint.Async
-
-