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
JVMBridgeBase
JVMBridgeBase<KafkaBasedLog<K, V>>
KafkaBasedLog<K, V>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<KafkaBasedLog<K, V>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<KafkaBasedLog<K, V>>.IsAssignableFrom<T>()
JVMBridgeBase<KafkaBasedLog<K, V>>.Execute<T>(params T[])
JVMBridgeBase<KafkaBasedLog<K, V>>.DynBridgeClazz
JVMBridgeBase<KafkaBasedLog<K, V>>.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.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

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

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

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