Table of Contents

Class Serializer

Namespace
Org.Apache.Kafka.Common.Serialization
Assembly
MASES.KNet.dll
public class Serializer : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
Serializer
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

Constructors

Serializer()

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

public Serializer()

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

Property Value

Action<Map, bool>

Remarks

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

OnSerialize

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

Property Value

Func<String, object, byte[]>

Remarks

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

OnSerialize3

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

Property Value

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

Remarks

If OnSerialize3 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

InitializeHandlers()

Handlers initializer for Serializer

protected virtual void InitializeHandlers()

Serialize(String, Headers, object)

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

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 object

object

Returns

byte[]

byte

Remarks

The method invokes the default implementation in the JVM interface using SerializeDefault(String, Headers, object); override the method to implement a different behavior

Serialize(String, object)

public virtual byte[] Serialize(String arg0, object arg1)

Parameters

arg0 String

String

arg1 object

object

Returns

byte[]

byte

SerializeDefault(String, Headers, object)

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

Parameters

arg0 String

String

arg1 Headers

Headers

arg2 object

object

Returns

byte[]

byte

Remarks

The method invokes the default implementation in the JVM interface