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
NetworkException
void write(List<T> messages)
messages
- void close() throws NetworkException
close
in interface AutoCloseable
NetworkException
Copyright © 2016 The Apache Software Foundation. All rights reserved.