RemoteEndpointJsrAsyncRemote, JsrBasicRemotepublic abstract class AbstractJsrRemote extends java.lang.Object implements RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic| Modifier and Type | Field | Description |
|---|---|---|
protected EncoderFactory |
encoders |
|
protected org.eclipse.jetty.websocket.common.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(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 org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint jettyRemote
protected final EncoderFactory encoders
protected AbstractJsrRemote(JsrSession session)
protected void assertMessageNotNull(java.lang.Object data)
protected void assertSendHandlerNotNull(SendHandler handler)
public void flushBatch()
throws java.io.IOException
flushBatch in interface RemoteEndpointjava.io.IOExceptionpublic boolean getBatchingAllowed()
getBatchingAllowed in interface RemoteEndpointpublic void setBatchingAllowed(boolean allowed)
throws java.io.IOException
setBatchingAllowed in interface 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 RemoteEndpointjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic void sendPong(java.nio.ByteBuffer data)
throws java.io.IOException,
java.lang.IllegalArgumentException
sendPong in interface RemoteEndpointjava.io.IOExceptionjava.lang.IllegalArgumentExceptionCopyright © 1995–2018 Webtide. All rights reserved.