Table of Contents

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 string

topic associated with the data

data T

T 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 string

topic associated with the data

headers Headers

Headers associated with the record; may be empty.

data T

T data

Returns

TJVMT

serialized bytes