Class MonitorOffsetsConsumerInterceptor<K,V>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.streams.consumer.MonitorOffsetsConsumerInterceptor<K,V>
-
- Type Parameters:
K
- the key-type.V
- the value-type
- All Implemented Interfaces:
AutoCloseable
,org.apache.kafka.clients.consumer.ConsumerInterceptor<K,V>
,org.apache.kafka.common.Configurable
public class MonitorOffsetsConsumerInterceptor<K,V> extends Object implements org.apache.kafka.clients.consumer.ConsumerInterceptor<K,V>
DefaultConsumerInterceptor
that is used to track consumption progress.
-
-
Constructor Summary
Constructors Constructor Description MonitorOffsetsConsumerInterceptor()
Creates a newMonitorOffsetsConsumerInterceptor
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
configure(Map<String,?> configs)
void
onCommit(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> offsets)
org.apache.kafka.clients.consumer.ConsumerRecords<K,V>
onConsume(org.apache.kafka.clients.consumer.ConsumerRecords<K,V> records)
-
-
-
Constructor Detail
-
MonitorOffsetsConsumerInterceptor
public MonitorOffsetsConsumerInterceptor()
Creates a newMonitorOffsetsConsumerInterceptor
instance.
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs)
- Specified by:
configure
in interfaceorg.apache.kafka.common.Configurable
-
onConsume
public org.apache.kafka.clients.consumer.ConsumerRecords<K,V> onConsume(org.apache.kafka.clients.consumer.ConsumerRecords<K,V> records)
-
onCommit
public void onCommit(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> offsets)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.apache.kafka.clients.consumer.ConsumerInterceptor<K,V>
-
-