Package org.apache.nifi.cluster.protocol
Interface ProtocolMessageUnmarshaller<T>
- Type Parameters:
T
- The type of protocol message.
public interface ProtocolMessageUnmarshaller<T>
Defines an unmarshaller for deserializing protocol messages.
-
Method Summary
Modifier and TypeMethodDescriptionunmarshal
(InputStream is) Deserializes a message on the given input stream.
-
Method Details
-
unmarshal
Deserializes a message on the given input stream.- Parameters:
is
- an input stream- Returns:
- deserialized message
- Throws:
IOException
- if the message could not be deserialized from the stream
-