public abstract class AbstractJsrRemote
extends java.lang.Object
implements javax.websocket.RemoteEndpoint
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(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.RemoteEndpoint
java.io.IOException
public boolean getBatchingAllowed()
getBatchingAllowed
in interface javax.websocket.RemoteEndpoint
public void setBatchingAllowed(boolean allowed) throws java.io.IOException
setBatchingAllowed
in interface javax.websocket.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 javax.websocket.RemoteEndpoint
java.io.IOException
java.lang.IllegalArgumentException
public void sendPong(java.nio.ByteBuffer data) throws java.io.IOException, java.lang.IllegalArgumentException
sendPong
in interface javax.websocket.RemoteEndpoint
java.io.IOException
java.lang.IllegalArgumentException
Copyright © 1995–2023 Webtide. All rights reserved.