Table of Contents

Class PartitionerDirect

Namespace
Org.Apache.Kafka.Clients.Producer
Assembly
MASES.KNet.dll

Direct override of Partitioner or its generic type if there is one

public class PartitionerDirect : Partitioner, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IPartitioner, IConfigurable, ICloseable, IAutoCloseable
Inheritance
PartitionerDirect
Implements
Inherited Members

Properties

AutoInit

Set to false to externally initialize this JVMBridgeListener instance using InitializeListener(IJVMBridgeBase)

public override bool AutoInit { get; }

Property Value

bool

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Close()

public override void Close()

Configure(Map<String, object>)

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

Parameters

arg0 Map<String, object>

Map

InitializeHandlers()

Handlers initializer for Partitioner

protected override void InitializeHandlers()

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

public override 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