Table of Contents

Interface IGenericSerDesFactory

Namespace
MASES.KNet.Serialization
Assembly
MASES.KNet.dll

Generic interface to access serializers

public interface IGenericSerDesFactory

Properties

AutoSelectBuffered

Set to true to automatically fallback to SerDesBuffered<T> when the JVM type is ByteBuffer

bool AutoSelectBuffered { get; }

Property Value

bool

Remarks

The property is by default true to optimized data flow between CLR and JVM

KeySerDesSelector

The Type used to create an instance of ISerDesSelector<T> for keys with BuildKeySerDes<TKey, TJVMTKey>()

Type KeySerDesSelector { get; }

Property Value

Type

ValueSerDesSelector

The Type used to create an instance of ISerDesSelector<T> for values with BuildValueSerDes<TValue, TJVMTValue>()

Type ValueSerDesSelector { get; }

Property Value

Type

Methods

BuildKeySerDes<TKey, TJVMTKey>()

Builds an instance of ISerDes<T, TJVMT> using the Type defined in KeySerDesSelector

ISerDes<TKey, TJVMTKey> BuildKeySerDes<TKey, TJVMTKey>()

Returns

ISerDes<TKey, TJVMTKey>

An instance of ISerDes<T, TJVMT>

Type Parameters

TKey

The type of the key

TJVMTKey

The JVM type of the key

Exceptions

InvalidOperationException

If KeySerDesSelector is null

BuildValueSerDes<TValue, TJVMTValue>()

Builds an instance of ISerDes<T, TJVMT> using the Type defined in ValueSerDesSelector

ISerDes<TValue, TJVMTValue> BuildValueSerDes<TValue, TJVMTValue>()

Returns

ISerDes<TValue, TJVMTValue>

An instance of ISerDes<T, TJVMT>

Type Parameters

TValue

The type of the key

TJVMTValue

The JVM type of the key

Exceptions

InvalidOperationException

If ValueSerDesSelector is null

Clear()

Clear the current factory

void Clear()