use of io.smallrye.reactive.messaging.kafka.base.KafkaMapBasedConfig in project smallrye-reactive-messaging by smallrye.
the class KafkaFailureHandlerTest method getIgnoreConfig.
private KafkaMapBasedConfig getIgnoreConfig(String topic) {
KafkaMapBasedConfig config = kafkaConfig("mp.messaging.incoming.kafka");
config.put("topic", topic);
config.put("group.id", UUID.randomUUID().toString());
config.put("value.deserializer", IntegerDeserializer.class.getName());
config.put("enable.auto.commit", "false");
config.put("auto.offset.reset", "earliest");
config.put("failure-strategy", "ignore");
return config;
}
use of io.smallrye.reactive.messaging.kafka.base.KafkaMapBasedConfig in project smallrye-reactive-messaging by smallrye.
the class KafkaFailureHandlerTest method getFailConfig.
private KafkaMapBasedConfig getFailConfig(String topic) {
KafkaMapBasedConfig config = kafkaConfig("mp.messaging.incoming.kafka");
config.put("group.id", UUID.randomUUID().toString());
config.put("topic", topic);
config.put("value.deserializer", IntegerDeserializer.class.getName());
config.put("enable.auto.commit", "false");
config.put("auto.offset.reset", "earliest");
config.put("failure-strategy", "fail");
return config;
}
use of io.smallrye.reactive.messaging.kafka.base.KafkaMapBasedConfig in project smallrye-reactive-messaging by smallrye.
the class KafkaFailureHandlerTest method getDeadLetterQueueConfig.
private KafkaMapBasedConfig getDeadLetterQueueConfig() {
KafkaMapBasedConfig config = kafkaConfig("mp.messaging.incoming.kafka");
config.put("topic", "dead-letter-default");
config.put("group.id", UUID.randomUUID().toString());
config.put("value.deserializer", IntegerDeserializer.class.getName());
config.put("enable.auto.commit", "false");
config.put("auto.offset.reset", "earliest");
config.put("failure-strategy", "dead-letter-queue");
return config;
}
use of io.smallrye.reactive.messaging.kafka.base.KafkaMapBasedConfig in project smallrye-reactive-messaging by smallrye.
the class KafkaNackPropagationTest method getPassedNackConfig.
private KafkaMapBasedConfig getPassedNackConfig(String topic) {
KafkaMapBasedConfig config = kafkaConfig("mp.messaging.outgoing.kafka");
config.put("value.serializer", IntegerSerializer.class.getName());
config.put("topic", topic);
return config;
}
use of io.smallrye.reactive.messaging.kafka.base.KafkaMapBasedConfig in project smallrye-reactive-messaging by smallrye.
the class KafkaNackWithMetadataTest method config.
private KafkaMapBasedConfig config() {
KafkaMapBasedConfig builder = kafkaConfig("mp.messaging.outgoing.main-producer");
builder.put("topic", topic);
builder.put("key.serializer", StringSerializer.class.getName());
builder.put("value.serializer", StringSerializer.class.getName());
builder.withPrefix("mp.messaging.incoming.main-consumer");
builder.put("topic", topic);
builder.put("key.deserializer", StringDeserializer.class.getName());
builder.put("value.deserializer", StringDeserializer.class.getName());
builder.put("auto.offset.reset", "earliest");
builder.put("failure-strategy", "dead-letter-queue");
builder.put("dead-letter-queue.topic", topic + "-dlt");
builder.put("dead-letter-queue.key.serializer", StringSerializer.class.getName());
builder.put("dead-letter-queue.value.serializer", StringSerializer.class.getName());
builder.withPrefix("mp.messaging.incoming.dlt-consumer");
builder.put("topic", topic + "-dlt");
builder.put("key.deserializer", StringDeserializer.class.getName());
builder.put("value.deserializer", StringDeserializer.class.getName());
builder.put("auto.offset.reset", "earliest");
return builder;
}
Aggregations