Class JsrAsyncRemote
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
-
- org.eclipse.jetty.websocket.jsr356.JsrAsyncRemote
-
- All Implemented Interfaces:
RemoteEndpoint,RemoteEndpoint.Async
public class JsrAsyncRemote extends AbstractJsrRemote implements RemoteEndpoint.Async
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
encoders, jettyRemote, session
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsrAsyncRemote(JsrSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSendTimeout()Future<Void>sendBinary(ByteBuffer data)voidsendBinary(ByteBuffer data, SendHandler handler)Future<Void>sendObject(Object data)voidsendObject(Object data, SendHandler handler)Future<Void>sendText(String text)voidsendText(String text, SendHandler handler)voidsetSendTimeout(long timeoutmillis)-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
assertMessageNotNull, assertSendHandlerNotNull, flushBatch, getBatchingAllowed, sendObjectViaFuture, 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
-
-
-
-
Constructor Detail
-
JsrAsyncRemote
protected JsrAsyncRemote(JsrSession session)
-
-
Method Detail
-
getSendTimeout
public long getSendTimeout()
- Specified by:
getSendTimeoutin interfaceRemoteEndpoint.Async
-
sendBinary
public Future<Void> sendBinary(ByteBuffer data)
- Specified by:
sendBinaryin interfaceRemoteEndpoint.Async
-
sendBinary
public void sendBinary(ByteBuffer data, SendHandler handler)
- Specified by:
sendBinaryin interfaceRemoteEndpoint.Async
-
sendObject
public Future<Void> sendObject(Object data)
- Specified by:
sendObjectin interfaceRemoteEndpoint.Async
-
sendObject
public void sendObject(Object data, SendHandler handler)
- Specified by:
sendObjectin interfaceRemoteEndpoint.Async
-
sendText
public Future<Void> sendText(String text)
- Specified by:
sendTextin interfaceRemoteEndpoint.Async
-
sendText
public void sendText(String text, SendHandler handler)
- Specified by:
sendTextin interfaceRemoteEndpoint.Async
-
setSendTimeout
public void setSendTimeout(long timeoutmillis)
- Specified by:
setSendTimeoutin interfaceRemoteEndpoint.Async
-
-