Package org.apache.nifi.cluster.protocol
Interface ProtocolContext<T>
- Type Parameters:
T
- The type of protocol message.
- All Known Implementing Classes:
JaxbProtocolContext
public interface ProtocolContext<T>
The context for communicating using the internal cluster protocol.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a marshaller for serializing protocol messages.Creates an unmarshaller for deserializing protocol messages.
-
Method Details
-
createMarshaller
ProtocolMessageMarshaller<T> createMarshaller()Creates a marshaller for serializing protocol messages.- Returns:
- a marshaller
-
createUnmarshaller
ProtocolMessageUnmarshaller<T> createUnmarshaller()Creates an unmarshaller for deserializing protocol messages.- Returns:
- a unmarshaller
-