Table of Contents

Class OffsetCommitCallback

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

Listener for Kafka OffsetCommitCallback. Extends JVMBridgeListener, implements IOffsetCommitCallback

public class OffsetCommitCallback : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IOffsetCommitCallback, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
OffsetCommitCallback
Implements
Derived
Inherited Members

Remarks

Dispose the object to avoid a resource leak, the object contains a reference to the corresponding JVM object

Constructors

OffsetCommitCallback()

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

public OffsetCommitCallback()

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

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

OnOnComplete

public Action<Map<TopicPartition, OffsetAndMetadata>, JVMBridgeException> OnOnComplete { get; set; }

Property Value

Action<Map<TopicPartition, OffsetAndMetadata>, JVMBridgeException>

Remarks

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

Methods

InitializeHandlers()

Handlers initializer for OffsetCommitCallback

protected virtual void InitializeHandlers()

OnComplete(Map<TopicPartition, OffsetAndMetadata>, JVMBridgeException)

public virtual void OnComplete(Map<TopicPartition, OffsetAndMetadata> arg0, JVMBridgeException arg1)

Parameters

arg0 Map<TopicPartition, OffsetAndMetadata>

Map

arg1 JVMBridgeException

Exception