Table of Contents

Class Deserializer<T>

Namespace
Org.Apache.Kafka.Common.Serialization
Assembly
MASES.KNet.dll

Listener for Kafka Deserializer. Extends IDeserializer<T>

public class Deserializer<T> : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IDeserializer<T>, IDeserializer, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

T
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
Deserializer<T>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeListener.Dispose()
JVMBridgeListener.AutoInit
JVMBridgeListener.IsBridgeStatic
JVMBridgeListener.IsBridgeCloseable
JVMBridgeListener.IsBridgeListener
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()
JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])
JVMBridgeBase<JVMBridgeListener>.DynBridgeClazz
JVMBridgeBase<JVMBridgeListener>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeInterface
JVMBridgeBase.IsBridgeAbstract

Remarks

Dispose the object to avoid a resource leak, the object contains a reference to the corresponding JVM object

Constructors

Deserializer()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public Deserializer()

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

OnClose

public Action OnClose { get; set; }

Property Value

Action

Remarks

If OnClose has a value it takes precedence over corresponding class method

OnConfigure

public Action<Map<String, object>, bool> OnConfigure { get; set; }

Property Value

Action<Map<String, object>, bool>

Remarks

If OnConfigure has a value it takes precedence over corresponding class method

OnDeserialize

public Func<String, byte[], T> OnDeserialize { get; set; }

Property Value

Func<String, byte[], T>

Remarks

If OnDeserialize has a value it takes precedence over corresponding class method

OnDeserialize3

public Func<String, Headers, byte[], T> OnDeserialize3 { get; set; }

Property Value

Func<String, Headers, byte[], T>

Remarks

If OnDeserialize3 has a value it takes precedence over corresponding class method

OnDeserialize3_2

public Func<String, Headers, ByteBuffer, T> OnDeserialize3_2 { get; set; }

Property Value

Func<String, Headers, ByteBuffer, T>

Remarks

If OnDeserialize3_2 has a value it takes precedence over corresponding class method

Methods

Close()

public virtual void Close()

Remarks

The method invokes the default implementation in the JVM interface using CloseDefault(); override the method to implement a different behavior

CloseDefault()

public void CloseDefault()

Remarks

The method invokes the default implementation in the JVM interface

Configure(Map<String, object>, bool)

public virtual void Configure(Map<String, object> arg0, bool arg1)

Parameters

arg0 Map<String, object>

Map

arg1 bool

bool

Remarks

The method invokes the default implementation in the JVM interface using ConfigureDefault(Map<String, object>, bool); override the method to implement a different behavior

ConfigureDefault(Map<String, object>, bool)

public void ConfigureDefault(Map<String, object> arg0, bool arg1)

Parameters

arg0 Map<String, object>

Map

arg1 bool

bool

Remarks

The method invokes the default implementation in the JVM interface

Deserialize(String, Headers, ByteBuffer)

public virtual T Deserialize(String arg0, Headers arg1, ByteBuffer arg2)

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 ByteBuffer

ByteBuffer

Returns

T

T

Remarks

The method invokes the default implementation in the JVM interface using DeserializeDefault(String, Headers, byte[]); override the method to implement a different behavior

Deserialize(String, Headers, byte[])

public virtual T Deserialize(String arg0, Headers arg1, byte[] arg2)

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 byte[]

byte

Returns

T

T

Remarks

The method invokes the default implementation in the JVM interface using DeserializeDefault(String, Headers, byte[]); override the method to implement a different behavior

Deserialize(String, byte[])

public virtual T Deserialize(String arg0, byte[] arg1)

Parameters

arg0 String

String

arg1 byte[]

byte

Returns

T

T

DeserializeDefault(String, Headers, ByteBuffer)

public T DeserializeDefault(String arg0, Headers arg1, ByteBuffer arg2)

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 ByteBuffer

ByteBuffer

Returns

T

T

Remarks

The method invokes the default implementation in the JVM interface

DeserializeDefault(String, Headers, byte[])

public T DeserializeDefault(String arg0, Headers arg1, byte[] arg2)

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 byte[]

byte

Returns

T

T

Remarks

The method invokes the default implementation in the JVM interface

InitializeHandlers()

Handlers initializer for Deserializer

protected virtual void InitializeHandlers()