Package io.micronaut.configuration.kafka
@Configuration
@Requires(property="kafka.enabled",
notEquals="false",
defaultValue="true")
package io.micronaut.configuration.kafka
Contains classes, interfaces and annotations that provide integration with Apache Kafka.
- Since:
- 1.0
- Author:
- graemerocher
-
ClassDescriptionConsumerAware<K,
V> Interface forKafkaListenerinstances to implement if they wish to obtain a reference to the underlyingConsumer.Creates the KafkaConsumerinstances used by Micronaut Kafka, including those of@KafkaListenerbeans.Intercepts a consumed KafkaConsumerRecordbefore Micronaut binds it to a listener method.The context for record interception.A registry for created Kafka consumers.Interface forKafkaListenerinstances to implement if they wish to performseek operationswhen the set of partitions assigned to theConsumerchanges.The defaultConsumerFactory, creating Apache KafkaKafkaConsumerinstances.A default implementation ofProducerFactoryused for creating producer.Defines an interface that can be injected intoKafkaListenerbeans so that offsets can be manually committed.A factory class for creating KafkaConsumerinstances.Internal integration point that lets an observability module observe the processing lifecycle of a single consumedConsumerRecord, from the first delivery attempt through to the record's terminal outcome (successful processing, or terminal failure once retries are exhausted / the exception is not retryable).AMessageHeadersimplementation for Kafka.KafkaMessage<K,V> Message payload representation.KafkaMessage.Builder<K,V> The message builder.A registry class for KafkaProducerinstances.A factory class for creating KafkaProducerinstances.A registry of managedProducerinstances key by id and type.Wraps a transactional Kafka producer and recreates it when Kafka expires the transactional id.A registry of managed transactionalProducerinstances key by id and type.