public abstract class WsRemoteEndpointBase extends Object implements RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic| Modifier and Type | Field and Description |
|---|---|
protected WsRemoteEndpointImplBase |
base |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected final WsRemoteEndpointImplBase base
public final void setBatchingAllowed(boolean batchingAllowed)
throws IOException
javax.websocket.RemoteEndpointsetBatchingAllowed in interface RemoteEndpointbatchingAllowed - New settingIOException - If changing the value resulted in a call to
RemoteEndpoint.flushBatch() and that call threw an
IOException.public final boolean getBatchingAllowed()
javax.websocket.RemoteEndpointgetBatchingAllowed in interface RemoteEndpointpublic final void flushBatch()
throws IOException
javax.websocket.RemoteEndpointflushBatch in interface RemoteEndpointIOExceptionpublic final void sendPing(ByteBuffer applicationData) throws IOException, IllegalArgumentException
javax.websocket.RemoteEndpointsendPing in interface RemoteEndpointapplicationData - The payload for the ping messageIOExceptionIllegalArgumentExceptionpublic final void sendPong(ByteBuffer applicationData) throws IOException, IllegalArgumentException
javax.websocket.RemoteEndpointsendPong in interface RemoteEndpointapplicationData - The payload for the pong messageIOExceptionIllegalArgumentExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.