Table of Contents

Class ConsumerInterceptor<K, V>

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

Listener for Kafka ConsumerRebalanceListener. Extends MASES.JCOBridge.C2JBridge.JVMBridgeListener, implements IConsumerInterceptor<K, V>

public class ConsumerInterceptor<K, V> : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IConsumerInterceptor<K, V>, IJVMBridgeBase, IJVMBridgeDefinition, IConfigurable, IAutoCloseable

Type Parameters

K
V
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
ConsumerInterceptor<K, V>
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

ConsumerInterceptor()

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

public ConsumerInterceptor()

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

OnClose

public Action OnClose { get; set; }

Property Value

Action

Remarks

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

OnConfigure

public Action<Map<String, object>> OnConfigure { get; set; }

Property Value

Action<Map<String, object>>

Remarks

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

OnOnCommit

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

Property Value

Action<Map<TopicPartition, OffsetAndMetadata>>

Remarks

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

OnOnConsume

public Func<ConsumerRecords<K, V>, ConsumerRecords<K, V>> OnOnConsume { get; set; }

Property Value

Func<ConsumerRecords<K, V>, ConsumerRecords<K, V>>

Remarks

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

Methods

Close()

public virtual void Close()

Configure(Map<String, object>)

public virtual void Configure(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Configure(Map<string, Object>)

Configure this class with the given key-value pairs

public virtual void Configure(Map<string, Object> configs)

Parameters

configs Map<string, Object>

The configuration Map

InitializeHandlers()

Handlers initializer for ConsumerInterceptor

protected virtual void InitializeHandlers()

OnCommit(Map<TopicPartition, OffsetAndMetadata>)

public virtual void OnCommit(Map<TopicPartition, OffsetAndMetadata> arg0)

Parameters

arg0 Map<TopicPartition, OffsetAndMetadata>

Map

OnConsume(ConsumerRecords<K, V>)

public virtual ConsumerRecords<K, V> OnConsume(ConsumerRecords<K, V> arg0)

Parameters

arg0 ConsumerRecords<K, V>

ConsumerRecords

Returns

ConsumerRecords<K, V>

ConsumerRecords