| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if batching is enabled, otherwise false.Obtains the current batching status of the endpoint. |
| public void | sendPing(ByteBuffer
The payload for the ping message applicationData)Send a ping message blocking until the message has been sent. |
| public void | sendPong(ByteBuffer
The payload for the pong message applicationData)Send a pong message blocking until the message has been sent. |
| public void | setBatchingAllowed(boolean
New setting batchingAllowed)Enable or disable the batching of outgoing messages for this endpoint. |
| flushBatch | back to summary |
|---|---|
| public void flushBatch() throws IOException Flush any currently batched messages to the remote endpoint. This method will block until the flush completes.
| |
| getBatchingAllowed | back to summary |
|---|---|
| public boolean getBatchingAllowed() Obtains the current batching status of the endpoint.
| |
| sendPing | back to summary |
|---|---|
| public void sendPing(ByteBuffer applicationData) throws IOException, IllegalArgumentException Send a ping message blocking until the message has been sent. Note that if a message is in the process of being sent asynchronously, this method will block until that message and this ping has been sent.
| |
| sendPong | back to summary |
|---|---|
| public void sendPong(ByteBuffer applicationData) throws IOException, IllegalArgumentException Send a pong message blocking until the message has been sent. Note that if a message is in the process of being sent asynchronously, this method will block until that message and this pong has been sent.
| |
| setBatchingAllowed | back to summary |
|---|---|
| public void setBatchingAllowed(boolean batchingAllowed) throws IOException Enable or disable the batching of outgoing messages for this endpoint. If batching is disabled when it was previously enabled then this method will block until any currently batched messages have been written.
| |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: The current send timeout in milliseconds. A non-positive value means an infinite timeout.Obtain the timeout (in milliseconds) for sending a message asynchronously. |
| public Future | Returns: A Future that signals when the message has been sent.The text message to send data)Send the message asynchronously, using the Future to signal to the client when the message has been sent. |
| public void | sendBinary(ByteBuffer
The text message to send data, SendHandler Used to signal to the client when the message has been sent completion)Send the message asynchronously, using the SendHandler to signal to the client when the message has been sent. |
| public Future | Returns: A Future that signals when the message has been sent.The object to be sent. obj)Encodes object as a message and sends it asynchronously, using the Future to signal to the client when the message has been sent. |
| public void | sendObject(Object
The object to be sent. obj, SendHandler Used to signal to the client when the message has been sent completion)Encodes object as a message and sends it asynchronously, using the SendHandler to signal to the client when the message has been sent. |
| public void | sendText(String
The text message to send text, SendHandler Used to signal to the client when the message has been sent completion)Send the message asynchronously, using the SendHandler to signal to the client when the message has been sent. |
| public Future | |
| public void | setSendTimeout(long
The new timeout for sending messages asynchronously in milliseconds. A non-positive value
means an infinite timeout. timeout)Set the timeout (in milliseconds) for sending a message asynchronously. |
| getSendTimeout | back to summary |
|---|---|
| public long getSendTimeout() Obtain the timeout (in milliseconds) for sending a message asynchronously. The default value is determined by
| |
| sendBinary | back to summary |
|---|---|
| public Future Send the message asynchronously, using the Future to signal to the client when the message has been sent.
| |
| sendBinary | back to summary |
|---|---|
| public void sendBinary(ByteBuffer data, SendHandler completion) Send the message asynchronously, using the SendHandler to signal to the client when the message has been sent.
| |
| sendObject | back to summary |
|---|---|
| public Future Encodes object as a message and sends it asynchronously, using the Future to signal to the client when the message has been sent.
| |
| sendObject | back to summary |
|---|---|
| public void sendObject(Object obj, SendHandler completion) Encodes object as a message and sends it asynchronously, using the SendHandler to signal to the client when the message has been sent.
| |
| sendText | back to summary |
|---|---|
| public void sendText(String text, SendHandler completion) Send the message asynchronously, using the SendHandler to signal to the client when the message has been sent.
| |
| sendText | back to summary |
|---|---|
| public Future Send the message asynchronously, using the Future to signal to the client when the message has been sent. | |
| setSendTimeout | back to summary |
|---|---|
| public void setSendTimeout(long timeout) Set the timeout (in milliseconds) for sending a message asynchronously. The default value is determined by
| |
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | |
| public Writer | |
| public void | sendBinary(ByteBuffer
The binary message to send data)Send the message, blocking until the message is sent. |
| public void | sendBinary(ByteBuffer
The partial message to send partialByte, boolean true if this is the last part of the message, otherwise falseSends part of a binary message to the remote endpoint. |
| public void | sendObject(Object
The object to be sent. data)Encodes object as a message and sends it to the remote endpoint. |
| public void | |
| public void |
| getSendStream | back to summary |
|---|---|
| public OutputStream getSendStream() throws IOException | |
| getSendWriter | back to summary |
|---|---|
| public Writer getSendWriter() throws IOException | |
| sendBinary | back to summary |
|---|---|
| public void sendBinary(ByteBuffer data) throws IOException Send the message, blocking until the message is sent.
| |
| sendBinary | back to summary |
|---|---|
| public void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException Sends part of a binary message to the remote endpoint. Once the first part of a message has been sent, no other text or binary messages may be sent until all remaining parts of this message have been sent.
| |
| sendObject | back to summary |
|---|---|
| public void sendObject(Object data) throws IOException, EncodeException Encodes object as a message and sends it to the remote endpoint.
| |
| sendText | back to summary |
|---|---|
| public void sendText(String text) throws IOException Send the message, blocking until the message is sent.
| |
| sendText | back to summary |
|---|---|
| public void sendText(String fragment, boolean isLast) throws IOException Sends part of a text message to the remote endpoint. Once the first part of a message has been sent, no other text or binary messages may be sent until all remaining parts of this message have been sent.
| |