public class WebSockets
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.nio.ByteBuffer |
mergeBuffers(java.nio.ByteBuffer... payload) |
|
static void |
sendBinary(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete binary message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendBinary(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete binary message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendBinary(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete binary message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendBinary(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete binary message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendBinary(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete binary message, invoking the callback when complete
|
static void |
sendBinary(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete binary message, invoking the callback when complete
|
static <T> void |
sendBinary(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete binary message, invoking the callback when complete
|
static <T> void |
sendBinary(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete binary message, invoking the callback when complete
|
static void |
sendBinary(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete binary message, invoking the callback when complete
|
static void |
sendBinary(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete binary message, invoking the callback when complete
|
static <T> void |
sendBinary(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete binary message, invoking the callback when complete
|
static <T> void |
sendBinary(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete binary message, invoking the callback when complete
|
static void |
sendBinaryBlocking(PooledByteBuffer pooledData,
WebSocketChannel wsChannel) |
Sends a complete binary message using blocking IO
Automatically frees the pooled byte buffer when done.
|
static void |
sendBinaryBlocking(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel) |
Sends a complete binary message using blocking IO
|
static void |
sendBinaryBlocking(java.nio.ByteBuffer data,
WebSocketChannel wsChannel) |
Sends a complete binary message using blocking IO
|
static void |
sendClose(int code,
java.lang.String reason,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete close message, invoking the callback when complete
|
static <T> void |
sendClose(int code,
java.lang.String reason,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendClose(CloseMessage closeMessage,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete close message, invoking the callback when complete
|
static <T> void |
sendClose(CloseMessage closeMessage,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendClose(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete close message, invoking the callback when complete
|
static <T> void |
sendClose(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendClose(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete close message, invoking the callback when complete
|
static <T> void |
sendClose(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(int code,
java.lang.String reason,
WebSocketChannel wsChannel) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(CloseMessage closeMessage,
WebSocketChannel wsChannel) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(java.nio.ByteBuffer data,
WebSocketChannel wsChannel) |
Sends a complete close message, invoking the callback when complete
|
static void |
sendPing(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete ping message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendPing(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete ping message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendPing(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete ping message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendPing(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete ping message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendPing(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPing(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete ping message, invoking the callback when complete
|
static <T> void |
sendPing(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete ping message, invoking the callback when complete
|
static <T> void |
sendPing(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPing(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPing(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete ping message, invoking the callback when complete
|
static <T> void |
sendPing(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete ping message, invoking the callback when complete
|
static <T> void |
sendPing(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPingBlocking(PooledByteBuffer pooledData,
WebSocketChannel wsChannel) |
Sends a complete ping message using blocking IO
Automatically frees the pooled byte buffer when done.
|
static void |
sendPingBlocking(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel) |
Sends a complete ping message using blocking IO
|
static void |
sendPingBlocking(java.nio.ByteBuffer data,
WebSocketChannel wsChannel) |
Sends a complete ping message using blocking IO
|
static void |
sendPong(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete pong message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendPong(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete pong message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendPong(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete pong message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendPong(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete pong message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendPong(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPong(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete pong message, invoking the callback when complete
|
static <T> void |
sendPong(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete pong message, invoking the callback when complete
|
static <T> void |
sendPong(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPong(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPong(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete pong message, invoking the callback when complete
|
static <T> void |
sendPong(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete pong message, invoking the callback when complete
|
static <T> void |
sendPong(java.nio.ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPongBlocking(PooledByteBuffer pooledData,
WebSocketChannel wsChannel) |
Sends a complete pong message using blocking IO
Automatically frees the pooled byte buffer when done.
|
static void |
sendPongBlocking(java.nio.ByteBuffer[] data,
WebSocketChannel wsChannel) |
Sends a complete pong message using blocking IO
|
static void |
sendPongBlocking(java.nio.ByteBuffer data,
WebSocketChannel wsChannel) |
Sends a complete pong message using blocking IO
|
static void |
sendText(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete text message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendText(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete text message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendText(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete text message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static <T> void |
sendText(PooledByteBuffer pooledData,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete text message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendText(java.lang.String message,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete text message, invoking the callback when complete
|
static void |
sendText(java.lang.String message,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete text message, invoking the callback when complete
|
static <T> void |
sendText(java.lang.String message,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete text message, invoking the callback when complete
|
static <T> void |
sendText(java.lang.String message,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete text message, invoking the callback when complete
|
static void |
sendText(java.nio.ByteBuffer message,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback) |
Sends a complete text message, invoking the callback when complete
|
static void |
sendText(java.nio.ByteBuffer message,
WebSocketChannel wsChannel,
WebSocketCallback<java.lang.Void> callback,
long timeoutmillis) |
Sends a complete text message, invoking the callback when complete
|
static <T> void |
sendText(java.nio.ByteBuffer message,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context) |
Sends a complete text message, invoking the callback when complete
|
static <T> void |
sendText(java.nio.ByteBuffer message,
WebSocketChannel wsChannel,
WebSocketCallback<T> callback,
T context,
long timeoutmillis) |
Sends a complete text message, invoking the callback when complete
|
static void |
sendTextBlocking(PooledByteBuffer pooledData,
WebSocketChannel wsChannel) |
Sends a complete text message, invoking the callback when complete
Automatically frees the pooled byte buffer when done.
|
static void |
sendTextBlocking(java.lang.String message,
WebSocketChannel wsChannel) |
Sends a complete text message, invoking the callback when complete
|
static void |
sendTextBlocking(java.nio.ByteBuffer message,
WebSocketChannel wsChannel) |
Sends a complete text message, invoking the callback when complete
|
public static void sendText(java.lang.String message, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendText(java.lang.String message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendText(java.lang.String message, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendText(java.lang.String message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendText(java.nio.ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendText(java.nio.ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendText(java.nio.ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendText(java.nio.ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
message
- The text to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendTextBlocking(java.lang.String message, WebSocketChannel wsChannel) throws java.io.IOException
message
- The text to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendTextBlocking(java.nio.ByteBuffer message, WebSocketChannel wsChannel) throws java.io.IOException
message
- The text to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendTextBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) throws java.io.IOException
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channeljava.io.IOException
public static void sendPing(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendPing(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendPing(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendPing(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendPing(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendPing(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendPing(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendPing(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendPingBlocking(java.nio.ByteBuffer data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendPingBlocking(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendPingBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) throws java.io.IOException
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channeljava.io.IOException
public static void sendPong(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendPong(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendPong(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendPong(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendPong(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendPong(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendPong(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendPong(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendPongBlocking(java.nio.ByteBuffer data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendPongBlocking(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendPongBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) throws java.io.IOException
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channeljava.io.IOException
public static void sendBinary(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendBinary(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendBinary(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendBinary(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendBinary(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendBinary(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendBinary(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendBinary(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completiontimeoutmillis
- the timeout in millisecondspublic static <T> void sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis)
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completiontimeoutmillis
- the timeout in millisecondspublic static void sendBinaryBlocking(java.nio.ByteBuffer data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendBinaryBlocking(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendBinaryBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) throws java.io.IOException
pooledData
- The data to send, it will be freed when donewsChannel
- The web socket channeljava.io.IOException
public static void sendClose(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendClose(java.nio.ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendClose(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendClose(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
data
- The data to sendwsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendClose(int code, java.lang.String reason, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
code
- The close codewsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendClose(int code, java.lang.String reason, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
code
- The close codewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendClose(CloseMessage closeMessage, WebSocketChannel wsChannel, WebSocketCallback<java.lang.Void> callback)
closeMessage
- The close messagewsChannel
- The web socket channelcallback
- The callback to invoke on completionpublic static <T> void sendClose(CloseMessage closeMessage, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context)
closeMessage
- The close messagewsChannel
- The web socket channelcallback
- The callback to invoke on completioncontext
- The context object that will be passed to the callback on completionpublic static void sendCloseBlocking(CloseMessage closeMessage, WebSocketChannel wsChannel) throws java.io.IOException
closeMessage
- the close messagewsChannel
- The web socket channeljava.io.IOException
public static void sendCloseBlocking(int code, java.lang.String reason, WebSocketChannel wsChannel) throws java.io.IOException
code
- wsChannel
- The web socket channeljava.io.IOException
public static void sendCloseBlocking(java.nio.ByteBuffer data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static void sendCloseBlocking(java.nio.ByteBuffer[] data, WebSocketChannel wsChannel) throws java.io.IOException
data
- The data to sendwsChannel
- The web socket channeljava.io.IOException
public static java.nio.ByteBuffer mergeBuffers(java.nio.ByteBuffer... payload)
Copyright © 2018. All rights reserved.