Messages
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | onReadInactivity(Runnable
the task to invoke runnable, long the amount of inactive time in milliseconds duration)Register a task to invoke after a period of read inactivity. |
| public void | onWriteInactivity(Runnable
the task to invoke runnable, long the amount of inactive time in milliseconds duration)Register a task to invoke after a period of write inactivity. |
| public default ListenableFuture | Returns: a ListenableFuture that can be used to determine when and if the message was successfully sentthe message message)
Deprecated
since 6.0. as of 6.0, in favor of
Send the given message.
sendAsync(Message)
|
| public CompletableFuture |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Close the connection.
| |
| onReadInactivity | back to summary |
|---|---|
| public void onReadInactivity(Runnable runnable, long duration) Register a task to invoke after a period of read inactivity.
| |
| onWriteInactivity | back to summary |
|---|---|
| public void onWriteInactivity(Runnable runnable, long duration) Register a task to invoke after a period of write inactivity.
| |
| send | back to summary |
|---|---|
| public default ListenableFuture Send the given message.
| |
| sendAsync | back to summary |
|---|---|
| public CompletableFuture Send the given message.
| |