public abstract class AbstractJsrRemote extends Object implements RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic
Modifier and Type | Field and Description |
---|---|
protected EncoderFactory |
encoders |
protected WebSocketRemoteEndpoint |
jettyRemote |
protected JsrSession |
session |
Modifier | Constructor and Description |
---|---|
protected |
AbstractJsrRemote(JsrSession session) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertMessageNotNull(Object data) |
protected void |
assertSendHandlerNotNull(SendHandler handler) |
void |
flushBatch() |
boolean |
getBatchingAllowed() |
Future<Void> |
sendObjectViaFuture(Object data) |
void |
sendPing(ByteBuffer data) |
void |
sendPong(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(Object data)
protected void assertSendHandlerNotNull(SendHandler handler)
public void flushBatch() throws IOException
flushBatch
in interface RemoteEndpoint
IOException
public boolean getBatchingAllowed()
getBatchingAllowed
in interface RemoteEndpoint
public void setBatchingAllowed(boolean allowed) throws IOException
setBatchingAllowed
in interface RemoteEndpoint
IOException
public void sendPing(ByteBuffer data) throws IOException, IllegalArgumentException
sendPing
in interface RemoteEndpoint
IOException
IllegalArgumentException
public void sendPong(ByteBuffer data) throws IOException, IllegalArgumentException
sendPong
in interface RemoteEndpoint
IOException
IllegalArgumentException
Copyright © 1995-2015 Webtide. All Rights Reserved.