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(java.nio.ByteBuffer applicationData)
Send a ping message blocking until the message has been sent.
|
void |
sendPong(java.nio.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 java.io.IOException
batchingAllowed
- New settingjava.io.IOException
- If changing the value resulted in a call to
flushBatch()
and that call threw an
IOException
.boolean getBatchingAllowed()
void flushBatch() throws java.io.IOException
java.io.IOException
void sendPing(java.nio.ByteBuffer applicationData) throws java.io.IOException, java.lang.IllegalArgumentException
applicationData
- The payload for the ping messagejava.io.IOException
java.lang.IllegalArgumentException
void sendPong(java.nio.ByteBuffer applicationData) throws java.io.IOException, java.lang.IllegalArgumentException
applicationData
- The payload for the pong messagejava.io.IOException
java.lang.IllegalArgumentException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.