public interface MessageWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying stream.
|
void |
write(Message message)
Write the given message to the backing output stream.
|
void write(Message message) throws java.io.IOException
message - The message to write.java.io.IOException - If there is an exception while writing the message.void close()
throws java.io.IOException
java.io.IOException - If there is an exception when closing the underlying stream.