Interface IDeserializer<T, TJVMT>
- Namespace
- MASES.KNet.Serialization
- Assembly
- MASES.KNet.dll
KNet interface for deserializers
public interface IDeserializer<T, TJVMT> : ISerDes, IDisposable
Type Parameters
T
TJVMT
The JVM type used
- Inherited Members
Properties
KafkaDeserializer
The Deserializer<T> to use in Apache Kafka
Deserializer<TJVMT> KafkaDeserializer { get; }
Property Value
- Deserializer<TJVMT>
Methods
Deserialize(string, TJVMT)
Executes the Deserializer action in the CLR
T Deserialize(string topic, TJVMT data)
Parameters
topic
stringtopic associated with the data
data
TJVMTserialized bytes; may be null; implementations are recommended to handle null by returning a value or null rather than throwing an exception
Returns
- T
The deserialized
T
DeserializeWithHeaders(string, Headers, TJVMT)
Executes the Deserializer action in the CLR
T DeserializeWithHeaders(string topic, Headers headers, TJVMT data)
Parameters
topic
stringtopic associated with the data
headers
HeadersHeaders associated with the record; may be empty.
data
TJVMTserialized bytes; may be null; implementations are recommended to handle null by returning a value or null rather than throwing an exception
Returns
- T
The deserialized
T