public interface MessageWriteTarget
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
Closes the connection to the server, triggering the
StreamConnection.connectionClosed()
event on the network-handling thread where all callbacks occur. |
com.google.common.util.concurrent.ListenableFuture |
writeBytes(byte[] message)
Writes the given bytes to the remote server.
|
com.google.common.util.concurrent.ListenableFuture writeBytes(byte[] message)
throws java.io.IOException
java.io.IOExceptionvoid closeConnection()
StreamConnection.connectionClosed()
event on the network-handling thread where all callbacks occur.