RemoteEndpoint
JsrAsyncRemote
, JsrBasicRemote
public 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 RemoteEndpoint
java.io.IOException
public boolean getBatchingAllowed()
getBatchingAllowed
in interface RemoteEndpoint
public void setBatchingAllowed(boolean allowed) throws java.io.IOException
setBatchingAllowed
in interface RemoteEndpoint
java.io.IOException
public 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 RemoteEndpoint
java.io.IOException
java.lang.IllegalArgumentException
public void sendPong(java.nio.ByteBuffer data) throws java.io.IOException, java.lang.IllegalArgumentException
sendPong
in interface RemoteEndpoint
java.io.IOException
java.lang.IllegalArgumentException
Copyright © 1995–2018 Webtide. All rights reserved.