Interface ISerializer<T, TJVMT>
- Namespace
- MASES.KNet.Serialization
- Assembly
- MASES.KNet.dll
KNet interface for serializers
public interface ISerializer<T, TJVMT> : ISerDes, IDisposable
Type Parameters
T
The .NET type
TJVMT
The JVM type used
- Inherited Members
Properties
KafkaSerializer
The Serializer<T> to use in Apache Kafka
Serializer<TJVMT> KafkaSerializer { get; }
Property Value
- Serializer<TJVMT>
Methods
Serialize(string, T)
Executes the Serializer action in the CLR
TJVMT Serialize(string topic, T data)
Parameters
topic
stringtopic associated with the data
data
TT
data
Returns
- TJVMT
serialized bytes
SerializeWithHeaders(string, Headers, T)
Executes the Serializer action in the CLR
TJVMT SerializeWithHeaders(string topic, Headers headers, T data)
Parameters
topic
stringtopic associated with the data
headers
HeadersHeaders associated with the record; may be empty.
data
TT
data
Returns
- TJVMT
serialized bytes