T - typepublic interface Connection<T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
void |
open()
Opens the connection.
|
void |
write(List<T> messages)
Writes a list of messages to the connection.
|
void |
write(T message)
Writes a message to the connection.
|
void open() throws NetworkException
NetworkExceptionvoid write(List<T> messages)
messages - void close() throws NetworkException
close in interface AutoCloseableNetworkExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.