public class KafkaDeadLetterQueue extends Object implements KafkaFailureHandler
KafkaFailureHandler.Strategy
Modifier and Type | Field and Description |
---|---|
static String |
DEAD_LETTER_CAUSE |
static String |
DEAD_LETTER_OFFSET |
static String |
DEAD_LETTER_PARTITION |
static String |
DEAD_LETTER_REASON |
static String |
DEAD_LETTER_TOPIC |
Constructor and Description |
---|
KafkaDeadLetterQueue(String channel,
String topic,
io.vertx.mutiny.kafka.client.producer.KafkaProducer producer,
KafkaSource<?,?> source) |
Modifier and Type | Method and Description |
---|---|
static KafkaFailureHandler |
create(io.vertx.mutiny.core.Vertx vertx,
Map<String,?> kafkaConfiguration,
KafkaConnectorIncomingConfiguration conf,
KafkaSource<?,?> source,
KafkaCDIEvents kafkaCDIEvents) |
<K,V> CompletionStage<Void> |
handle(IncomingKafkaRecord<K,V> record,
Throwable reason,
Metadata metadata) |
void |
terminate() |
public static final String DEAD_LETTER_REASON
public static final String DEAD_LETTER_CAUSE
public static final String DEAD_LETTER_TOPIC
public static final String DEAD_LETTER_OFFSET
public static final String DEAD_LETTER_PARTITION
public KafkaDeadLetterQueue(String channel, String topic, io.vertx.mutiny.kafka.client.producer.KafkaProducer producer, KafkaSource<?,?> source)
public static KafkaFailureHandler create(io.vertx.mutiny.core.Vertx vertx, Map<String,?> kafkaConfiguration, KafkaConnectorIncomingConfiguration conf, KafkaSource<?,?> source, KafkaCDIEvents kafkaCDIEvents)
public <K,V> CompletionStage<Void> handle(IncomingKafkaRecord<K,V> record, Throwable reason, Metadata metadata)
handle
in interface KafkaFailureHandler
public void terminate()
terminate
in interface KafkaFailureHandler
Copyright © 2018–2021 SmallRye. All rights reserved.