Interface ISerializer<T>
- Namespace
- Org.Apache.Kafka.Common.Serialization
- Assembly
- MASES.KNet.dll
Listener for Kafka Serializer. Extends Serializer
public interface ISerializer<T> : ISerializer, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
TThe data associated to the event
- Inherited Members
Methods
Serialize(String, Headers, T)
Executes the Serializer action in the CLR
byte[] Serialize(String topic, Headers headers, T data)
Parameters
topicStringtopic associated with the data
headersHeadersHeaders associated with the record; may be empty.
dataTTdata
Returns
- byte[]
serialized bytes
Serialize(String, T)
Executes the Serializer action in the CLR
byte[] Serialize(String topic, T data)
Parameters
topicStringtopic associated with the data
dataTTdata
Returns
- byte[]
serialized bytes