|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.websocket.WsRemoteEndpointBase
public abstract class WsRemoteEndpointBase
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint |
---|
RemoteEndpoint.Async, RemoteEndpoint.Basic |
Field Summary | |
---|---|
protected WsRemoteEndpointImplBase |
base
|
Method Summary | |
---|---|
void |
flushBatch()
Flush any currently batched messages to the remote endpoint. |
boolean |
getBatchingAllowed()
Obtains the current batching status of the endpoint. |
void |
sendPing(ByteBuffer applicationData)
Send a ping message blocking until the message has been sent. |
void |
sendPong(ByteBuffer applicationData)
Send a pong message blocking until the message has been sent. |
void |
setBatchingAllowed(boolean batchingAllowed)
Enable or disable the batching of outgoing messages for this endpoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final WsRemoteEndpointImplBase base
Method Detail |
---|
public final void setBatchingAllowed(boolean batchingAllowed) throws IOException
javax.websocket.RemoteEndpoint
setBatchingAllowed
in interface RemoteEndpoint
batchingAllowed
- New setting
IOException
- If changing the value resulted in a call to
RemoteEndpoint.flushBatch()
and that call threw an
IOException
.public final boolean getBatchingAllowed()
javax.websocket.RemoteEndpoint
getBatchingAllowed
in interface RemoteEndpoint
public final void flushBatch() throws IOException
javax.websocket.RemoteEndpoint
flushBatch
in interface RemoteEndpoint
IOException
public final void sendPing(ByteBuffer applicationData) throws IOException, IllegalArgumentException
javax.websocket.RemoteEndpoint
sendPing
in interface RemoteEndpoint
applicationData
- The payload for the ping message
IOException
IllegalArgumentException
public final void sendPong(ByteBuffer applicationData) throws IOException, IllegalArgumentException
javax.websocket.RemoteEndpoint
sendPong
in interface RemoteEndpoint
applicationData
- The payload for the pong message
IOException
IllegalArgumentException
|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |