Table of Contents

Class ConsumerRebalanceListener

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

Listener for Kafka ConsumerRebalanceListener. Extends MASES.JCOBridge.C2JBridge.JVMBridgeListener, implements IConsumerRebalanceListener

public class ConsumerRebalanceListener : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IConsumerRebalanceListener, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
ConsumerRebalanceListener
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

Remarks

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

Constructors

ConsumerRebalanceListener()

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

public ConsumerRebalanceListener()

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

OnOnPartitionsAssigned

public Action<Collection<TopicPartition>> OnOnPartitionsAssigned { get; set; }

Property Value

Action<Collection<TopicPartition>>

Remarks

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

OnOnPartitionsLost

public Action<Collection<TopicPartition>> OnOnPartitionsLost { get; set; }

Property Value

Action<Collection<TopicPartition>>

Remarks

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

OnOnPartitionsRevoked

public Action<Collection<TopicPartition>> OnOnPartitionsRevoked { get; set; }

Property Value

Action<Collection<TopicPartition>>

Remarks

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

Methods

InitializeHandlers()

Handlers initializer for ConsumerRebalanceListener

protected virtual void InitializeHandlers()

OnPartitionsAssigned(Collection<TopicPartition>)

public virtual void OnPartitionsAssigned(Collection<TopicPartition> arg0)

Parameters

arg0 Collection<TopicPartition>

Collection

OnPartitionsLost(Collection<TopicPartition>)

public virtual void OnPartitionsLost(Collection<TopicPartition> arg0)

Parameters

arg0 Collection<TopicPartition>

Collection

Remarks

The method invokes the default implementation in the JVM interface using OnPartitionsLostDefault(Collection<TopicPartition>); override the method to implement a different behavior

OnPartitionsLostDefault(Collection<TopicPartition>)

public void OnPartitionsLostDefault(Collection<TopicPartition> arg0)

Parameters

arg0 Collection<TopicPartition>

Collection

Remarks

The method invokes the default implementation in the JVM interface

OnPartitionsRevoked(Collection<TopicPartition>)

public virtual void OnPartitionsRevoked(Collection<TopicPartition> arg0)

Parameters

arg0 Collection<TopicPartition>

Collection