Table of Contents

Class Deserializer

Namespace
Org.Apache.Kafka.Common.Serialization
Assembly
MASES.KNet.dll
public class Deserializer : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
Deserializer
Implements
Derived
Inherited Members

Constructors

Deserializer()

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

public Deserializer()

Deserializer(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public Deserializer(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

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, bool> OnConfigure { get; set; }

Property Value

Action<Map, bool>

Remarks

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

OnDeserialize

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

Property Value

Func<String, byte[], object>

Remarks

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

OnDeserialize3

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

Property Value

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

Remarks

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

OnDeserialize3_2

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

Property Value

Func<String, Headers, ByteBuffer, object>

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, bool)

public virtual void Configure(Map arg0, bool arg1)

Parameters

arg0 Map

Map

arg1 bool

bool

Remarks

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

ConfigureDefault(Map, bool)

public void ConfigureDefault(Map arg0, bool arg1)

Parameters

arg0 Map

Map

arg1 bool

bool

Remarks

The method invokes the default implementation in the JVM interface

Deserialize(String, Headers, ByteBuffer)

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

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 ByteBuffer

ByteBuffer

Returns

object

object

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 object Deserialize(String arg0, Headers arg1, byte[] arg2)

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 byte[]

byte

Returns

object

object

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 object Deserialize(String arg0, byte[] arg1)

Parameters

arg0 String

String

arg1 byte[]

byte

Returns

object

object

DeserializeDefault(String, Headers, ByteBuffer)

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

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 ByteBuffer

ByteBuffer

Returns

object

object

Remarks

The method invokes the default implementation in the JVM interface

DeserializeDefault(String, Headers, byte[])

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

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 byte[]

byte

Returns

object

object

Remarks

The method invokes the default implementation in the JVM interface

InitializeHandlers()

Handlers initializer for Deserializer

protected virtual void InitializeHandlers()