Class KafkaSingleThreadedMessageReceiver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void commit​(java.util.Set<SubscriptionPartitionOffset> offsets)  
      boolean moveOffset​(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset offset)  
      java.util.Optional<Message> next()  
      void stop()  
      void update​(pl.allegro.tech.hermes.api.Subscription newSubscription)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KafkaSingleThreadedMessageReceiver

        public KafkaSingleThreadedMessageReceiver​(org.apache.kafka.clients.consumer.KafkaConsumer<byte[],​byte[]> consumer,
                                                  KafkaConsumerRecordToMessageConverterFactory messageConverterFactory,
                                                  pl.allegro.tech.hermes.common.metric.HermesMetrics metrics,
                                                  pl.allegro.tech.hermes.common.kafka.KafkaNamesMapper kafkaNamesMapper,
                                                  pl.allegro.tech.hermes.api.Topic topic,
                                                  pl.allegro.tech.hermes.api.Subscription subscription,
                                                  java.time.Duration poolTimeout,
                                                  int readQueueCapacity,
                                                  SubscriptionLoadRecorder loadReporter,
                                                  ConsumerPartitionAssignmentState partitionAssignmentState)