Interface Consumer

All Known Implementing Classes:
BatchConsumer, SerialConsumer

public interface Consumer
  • Method Details

    • consume

      void consume(Runnable signalsInterrupt)
      Consume **must** make sure that interrupted status is restored as it is needed for stopping unhealthy consumers. Swallowing the interrupt by consume or any of its dependencies will result in consumer being marked as unhealthy and will prevent commits despite messages being sent to subscribers.
    • initialize

      void initialize()
    • tearDown

      void tearDown()
    • updateSubscription

      void updateSubscription(pl.allegro.tech.hermes.api.Subscription subscription)
    • updateTopic

      void updateTopic(pl.allegro.tech.hermes.api.Topic topic)
    • commit

      void commit(Set<SubscriptionPartitionOffset> offsets)
    • moveOffset

      pl.allegro.tech.hermes.common.kafka.offset.PartitionOffsets moveOffset(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffsets subscriptionPartitionOffsets)
    • getSubscription

      pl.allegro.tech.hermes.api.Subscription getSubscription()
    • getAssignedPartitions

      Set<Integer> getAssignedPartitions()