Class KafkaDeadLetterQueue
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.fault.KafkaDeadLetterQueue
-
- All Implemented Interfaces:
KafkaFailureHandler
public class KafkaDeadLetterQueue extends Object implements KafkaFailureHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.smallrye.reactive.messaging.kafka.fault.KafkaFailureHandler
KafkaFailureHandler.Strategy
-
-
Constructor Summary
Constructors Constructor Description KafkaDeadLetterQueue(String channel, String topic, io.vertx.mutiny.kafka.client.producer.KafkaProducer producer, KafkaSource<?,?> source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KafkaFailureHandler
create(io.vertx.mutiny.core.Vertx vertx, Map<String,String> kafkaConfiguration, KafkaConnectorIncomingConfiguration conf, KafkaSource<?,?> source, KafkaCDIEvents kafkaCDIEvents)
<K,V>
CompletionStage<Void>handle(IncomingKafkaRecord<K,V> record, Throwable reason)
void
terminate()
-
-
-
Constructor Detail
-
KafkaDeadLetterQueue
public KafkaDeadLetterQueue(String channel, String topic, io.vertx.mutiny.kafka.client.producer.KafkaProducer producer, KafkaSource<?,?> source)
-
-
Method Detail
-
create
public static KafkaFailureHandler create(io.vertx.mutiny.core.Vertx vertx, Map<String,String> kafkaConfiguration, KafkaConnectorIncomingConfiguration conf, KafkaSource<?,?> source, KafkaCDIEvents kafkaCDIEvents)
-
handle
public <K,V> CompletionStage<Void> handle(IncomingKafkaRecord<K,V> record, Throwable reason)
- Specified by:
handle
in interfaceKafkaFailureHandler
-
terminate
public void terminate()
- Specified by:
terminate
in interfaceKafkaFailureHandler
-
-