Table of Contents

Class Partitioner

Namespace
Org.Apache.Kafka.Clients.Producer
Assembly
MASES.KNet.dll
public class Partitioner : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IPartitioner, IConfigurable, ICloseable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
Partitioner
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

Partitioner()

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

public Partitioner()

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

Property Value

Action<Map<String, object>>

Remarks

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

OnPartition

public Func<String, object, byte[], object, byte[], Cluster, int> OnPartition { get; set; }

Property Value

Func<String, object, byte[], object, byte[], Cluster, int>

Remarks

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

Methods

Close()

public virtual void Close()

Configure(Map<String, object>)

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

Parameters

arg0 Map<String, object>

Map

InitializeHandlers()

Handlers initializer for Partitioner

protected virtual void InitializeHandlers()

Partition(String, object, byte[], object, byte[], Cluster)

public virtual int Partition(String arg0, object arg1, byte[] arg2, object arg3, byte[] arg4, Cluster arg5)

Parameters

arg0 String

String

arg1 object

object

arg2 byte[]

byte

arg3 object

object

arg4 byte[]

byte

arg5 Cluster

Cluster

Returns

int

int