Uses of Class
io.smallrye.reactive.messaging.kafka.companion.ConsumerBuilder
Packages that use ConsumerBuilder
-
Uses of ConsumerBuilder in io.smallrye.reactive.messaging.kafka.companion
Methods in io.smallrye.reactive.messaging.kafka.companion that return ConsumerBuilderModifier and TypeMethodDescription<K,V> ConsumerBuilder<K, V> <V> ConsumerBuilder<String,V> <K,V> ConsumerBuilder<K, V> KafkaCompanion.consume(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde) KafkaCompanion.consumeDoubles()KafkaCompanion.consumeIntegers()KafkaCompanion.consumeStrings()<K,V> ConsumerBuilder<K, V> KafkaCompanion.consumeWithDeserializers(Class<? extends org.apache.kafka.common.serialization.Deserializer<?>> valueDeserializerClassName) <K,V> ConsumerBuilder<K, V> KafkaCompanion.consumeWithDeserializers(Class<? extends org.apache.kafka.common.serialization.Deserializer<?>> keyDeserializerClassName, Class<? extends org.apache.kafka.common.serialization.Deserializer<?>> valueDeserializerClassName) <K,V> ConsumerBuilder<K, V> KafkaCompanion.consumeWithDeserializers(String valueDeserializerClassName) <K,V> ConsumerBuilder<K, V> KafkaCompanion.consumeWithDeserializers(String keyDeserializerClassName, String valueDeserializerClassName) <K,V> ConsumerBuilder<K, V> KafkaCompanion.consumeWithDeserializers(org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer, org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer) ConsumerBuilder.withAutoCommit()Enable auto commitConsumerBuilder.withClientId(String clientId) Add configuration property forclient.idConsumerBuilder.withCommitAsync(Function<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>, Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata>> commitFunction, org.apache.kafka.clients.consumer.OffsetCommitCallback callback) If set the given function is used to determine when and which offsets to commit asyncConsumerBuilder.withCommitAsyncWhen(Predicate<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> commitPredicate) If set the given function is used to determine when to commit asyncConsumerBuilder.withCommitSync(Function<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>, Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata>> commitFunction) If set the given function is used to determine when and which offsets to commit syncConsumerBuilder.withCommitSyncWhen(Predicate<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> commitPredicate) If set the given function is used to determine when to commit syncConsumerBuilder.withGroupId(String groupId) Add configuration property forgroup.idConsumerBuilder.withIsolationLevel(org.apache.kafka.common.IsolationLevel isolationLevel) Set isolation levelConsumerBuilder.withOffsetReset(org.apache.kafka.clients.consumer.OffsetResetStrategy offsetResetStrategy) Add configuration property forauto.offset.resetConsumerBuilder.withOnPartitionsAssigned(Consumer<Collection<org.apache.kafka.common.TopicPartition>> onPartitionsAssigned) ConsumerBuilder.withOnPartitionsRevoked(Consumer<Collection<org.apache.kafka.common.TopicPartition>> onPartitionsRevoked) ConsumerBuilder.withOnTermination(BiConsumer<org.apache.kafka.clients.consumer.KafkaConsumer<K, V>, Throwable> onTermination) ConsumerBuilder.withPollTimeout(Duration timeout) Set poll timeoutAdd property to the configuration to be used when the consumer is created.Add properties to the configuration to be used when the consumer is created.Methods in io.smallrye.reactive.messaging.kafka.companion with parameters of type ConsumerBuilderModifier and TypeMethodDescription<K,C, P> ProducerTask KafkaCompanion.process(Set<String> topics, ConsumerBuilder<K, C> consumer, ProducerBuilder<K, P> producer, Function<org.apache.kafka.clients.consumer.ConsumerRecord<K, C>, org.apache.kafka.clients.producer.ProducerRecord<K, P>> process) <K,C, P> ProducerTask KafkaCompanion.processTransactional(Set<String> topics, ConsumerBuilder<K, C> consumer, ProducerBuilder<K, P> producer, Function<org.apache.kafka.clients.consumer.ConsumerRecord<K, C>, org.apache.kafka.clients.producer.ProducerRecord<K, P>> process)