Table of Contents

Class KafkaBasedLog<K, V>

Namespace
Org.Apache.Kafka.Connect.Util
Assembly
MASES.KNet.dll
public class KafkaBasedLog<K, V> : JVMBridgeBase<KafkaBasedLog<K, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

K
V
Inheritance
KafkaBasedLog<K, V>
Implements
Inherited Members

Constructors

KafkaBasedLog()

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

public KafkaBasedLog()

KafkaBasedLog(String, Map<String, object>, Map<String, object>, Supplier<TopicAdmin>, Callback<ConsumerRecord<K, V>>, Time, Consumer<TopicAdmin>)

public KafkaBasedLog(String arg0, Map<String, object> arg1, Map<String, object> arg2, Supplier<TopicAdmin> arg3, Callback<ConsumerRecord<K, V>> arg4, Time arg5, Consumer<TopicAdmin> arg6)

Parameters

arg0 String

String

arg1 Map<String, object>

Map

arg2 Map<String, object>

Map

arg3 Supplier<TopicAdmin>

Supplier

arg4 Callback<ConsumerRecord<K, V>>

Callback

arg5 Time

Time

arg6 Consumer<TopicAdmin>

Consumer

KafkaBasedLog(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 KafkaBasedLog(params object[] args)

Parameters

args object[]

Properties

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

Flush()

public void Flush()

PartitionCount()

public int PartitionCount()

Returns

int

int

ReadToEnd()

public Future<Void> ReadToEnd()

Returns

Future<Void>

Future

ReadToEnd(Callback<Void>)

public void ReadToEnd(Callback<Void> arg0)

Parameters

arg0 Callback<Void>

Callback

Send(K, V)

public void Send(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

Send(K, V, Callback)

public void Send(K arg0, V arg1, Callback arg2)

Parameters

arg0 K

K

arg1 V

V

arg2 Callback

Callback

SendWithReceipt(K, V)

public Future<RecordMetadata> SendWithReceipt(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

Returns

Future<RecordMetadata>

Future

SendWithReceipt(K, V, Callback)

public Future<RecordMetadata> SendWithReceipt(K arg0, V arg1, Callback arg2)

Parameters

arg0 K

K

arg1 V

V

arg2 Callback

Callback

Returns

Future<RecordMetadata>

Future

Start()

public void Start()

Start(bool)

public void Start(bool arg0)

Parameters

arg0 bool

bool

Stop()

public void Stop()

WithExistingClients(String, Consumer<K, V>, Producer<K, V>, TopicAdmin, Callback<ConsumerRecord<K, V>>, Time, Consumer<TopicAdmin>, Predicate<TopicPartition>)

public static KafkaBasedLog<K, V> WithExistingClients(String arg0, Consumer<K, V> arg1, Producer<K, V> arg2, TopicAdmin arg3, Callback<ConsumerRecord<K, V>> arg4, Time arg5, Consumer<TopicAdmin> arg6, Predicate<TopicPartition> arg7)

Parameters

arg0 String

String

arg1 Consumer<K, V>

Consumer

arg2 Producer<K, V>

Producer

arg3 TopicAdmin

TopicAdmin

arg4 Callback<ConsumerRecord<K, V>>

Callback

arg5 Time

Time

arg6 Consumer<TopicAdmin>

Consumer

arg7 Predicate<TopicPartition>

Predicate

Returns

KafkaBasedLog<K, V>

KafkaBasedLog

Operators

implicit operator KafkaBasedLog(KafkaBasedLog<K, V>)

public static implicit operator KafkaBasedLog(KafkaBasedLog<K, V> t)

Parameters

t KafkaBasedLog<K, V>

Returns

KafkaBasedLog