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
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
ValueSerDesSelector
The Type used to create an instance of ISerDesSelector<T> for values with BuildValueSerDes<TValue, TJVMTValue>()
Type ValueSerDesSelector { get; }
Property Value
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
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
Clear()
Clear the current factory
void Clear()