Interface IConsumerInterceptor<K, V>
Listener for Kafka ConsumerInterceptor. Extends MASES.JCOBridge.C2JBridge.IJVMBridgeBase
public interface IConsumerInterceptor<K, V> : IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
K
V
- Inherited Members
-
IJVMBridgeBase.MonitorEnter()IJVMBridgeBase.MonitorExit()IJVMBridgeBase.IsInstanceOf(IJavaType)IJVMBridgeBase.IsInstanceOf<T>()IJVMBridgeBase.RuntimeIsInstanceOf<T>()IJVMBridgeBase.CastTo<TNewClass>()IJVMBridgeBase.CastDirect<TNewClass>()IJVMBridgeBase.DynBridgeInstanceIJVMBridgeBase.BridgeInstanceIJVMBridgeDefinition.BridgeClassNameIJVMBridgeDefinition.IsBridgeInterfaceIJVMBridgeDefinition.IsBridgeAbstractIJVMBridgeDefinition.IsBridgeStaticIJVMBridgeDefinition.IsBridgeCloseableIJVMBridgeDefinition.IsBridgeListener
Methods
Close()
This is called when interceptor is closed
void Close()
Configure(Map<string, Object>)
Configure this class with the given key-value pairs
void Configure(Map<string, Object> configs)
Parameters
OnCommit(Map<TopicPartition, OffsetAndMetadata>)
This is called when offsets get committed.
void OnCommit(Map<TopicPartition, OffsetAndMetadata> offsets)
Parameters
offsets
Map<TopicPartition, OffsetAndMetadata>A Map of offsets by partition with associated metadata
OnConsume(ConsumerRecords<K, V>)
This is called just before the records are returned by Poll(Duration)
ConsumerRecords<K, V> OnConsume(ConsumerRecords<K, V> records)
Parameters
records
ConsumerRecords<K, V>records records to be consumed by the client or records returned by the previous interceptors in the list
Returns
- ConsumerRecords<K, V>
records that are either modified by the interceptor or same as records passed to this method