Class ConsumerRebalanceListener
Listener for Kafka ConsumerRebalanceListener. Extends JVMBridgeListener, implements IConsumerRebalanceListener
public class ConsumerRebalanceListener : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IConsumerRebalanceListener, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
ConsumerRebalanceListener
- Implements
- Derived
- Inherited Members
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()
ConsumerRebalanceListener(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 ConsumerRebalanceListener(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
OnOnPartitionsAssigned
public Action<Collection<TopicPartition>> OnOnPartitionsAssigned { get; set; }
Property Value
Remarks
If OnOnPartitionsAssigned has a value it takes precedence over corresponding class method
OnOnPartitionsLost
public Action<Collection<TopicPartition>> OnOnPartitionsLost { get; set; }
Property Value
Remarks
If OnOnPartitionsLost has a value it takes precedence over corresponding class method
OnOnPartitionsRevoked
public Action<Collection<TopicPartition>> OnOnPartitionsRevoked { get; set; }
Property Value
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
OnPartitionsLost(Collection<TopicPartition>)
public virtual void OnPartitionsLost(Collection<TopicPartition> arg0)
Parameters
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
Remarks
The method invokes the default implementation in the JVM interface
OnPartitionsRevoked(Collection<TopicPartition>)
public virtual void OnPartitionsRevoked(Collection<TopicPartition> arg0)