javax.websocket.RemoteEndpointJsrAsyncRemote, JsrBasicRemotepublic abstract class AbstractJsrRemote
extends java.lang.Object
implements javax.websocket.RemoteEndpoint
| Modifier and Type | Field | Description |
|---|---|---|
protected EncoderFactory |
encoders |
|
protected WebSocketRemoteEndpoint |
jettyRemote |
|
protected JsrSession |
session |
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractJsrRemote(JsrSession session) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
assertMessageNotNull(java.lang.Object data) |
|
protected void |
assertSendHandlerNotNull(javax.websocket.SendHandler handler) |
|
void |
flushBatch() |
|
boolean |
getBatchingAllowed() |
|
java.util.concurrent.Future<java.lang.Void> |
sendObjectViaFuture(java.lang.Object data) |
|
void |
sendPing(java.nio.ByteBuffer data) |
|
void |
sendPong(java.nio.ByteBuffer data) |
|
void |
setBatchingAllowed(boolean allowed) |
protected final JsrSession session
protected final WebSocketRemoteEndpoint jettyRemote
protected final EncoderFactory encoders
protected AbstractJsrRemote(JsrSession session)
protected void assertMessageNotNull(java.lang.Object data)
protected void assertSendHandlerNotNull(javax.websocket.SendHandler handler)
public void flushBatch()
throws java.io.IOException
flushBatch in interface javax.websocket.RemoteEndpointjava.io.IOExceptionpublic boolean getBatchingAllowed()
getBatchingAllowed in interface javax.websocket.RemoteEndpointpublic void setBatchingAllowed(boolean allowed)
throws java.io.IOException
setBatchingAllowed in interface javax.websocket.RemoteEndpointjava.io.IOExceptionpublic java.util.concurrent.Future<java.lang.Void> sendObjectViaFuture(java.lang.Object data)
public void sendPing(java.nio.ByteBuffer data)
throws java.io.IOException,
java.lang.IllegalArgumentException
sendPing in interface javax.websocket.RemoteEndpointjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic void sendPong(java.nio.ByteBuffer data)
throws java.io.IOException,
java.lang.IllegalArgumentException
sendPong in interface javax.websocket.RemoteEndpointjava.io.IOExceptionjava.lang.IllegalArgumentExceptionCopyright © 1995–2018 Webtide. All rights reserved.