public interface RemoteEndpoint
Modifier and Type | Interface and Description |
---|---|
static interface |
RemoteEndpoint.Async |
static interface |
RemoteEndpoint.Basic |
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.
|
void setBatchingAllowed(boolean batchingAllowed) throws IOException
batchingAllowed
- New settingIOException
- If changing the value resulted in a call to
flushBatch()
and that call threw an
IOException
.boolean getBatchingAllowed()
true
if batching is enabled, otherwise
false
.void flushBatch() throws IOException
IOException
- If an I/O error occurs while flushingvoid sendPing(ByteBuffer applicationData) throws IOException, IllegalArgumentException
applicationData
- The payload for the ping messageIOException
- If an I/O error occurs while sending the pingIllegalArgumentException
- if the applicationData is too large for
a control message (max 125 bytes)void sendPong(ByteBuffer applicationData) throws IOException, IllegalArgumentException
applicationData
- The payload for the pong messageIOException
- If an I/O error occurs while sending the pongIllegalArgumentException
- if the applicationData is too large for
a control message (max 125 bytes)Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.