Package org.apache.nifi.cluster.protocol
Interface ProtocolMessageMarshaller<T>
- Type Parameters:
T
- The type of protocol message.
public interface ProtocolMessageMarshaller<T>
Defines a marshaller for serializing protocol messages.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
marshal
(T msg, OutputStream os) Serializes the given message to the given output stream.
-
Method Details
-
marshal
Serializes the given message to the given output stream.- Parameters:
msg
- a messageos
- an output stream- Throws:
IOException
- if the message could not be serialized to the stream
-