Class SerialConsumer

  • All Implemented Interfaces:
    Consumer

    public class SerialConsumer
    extends java.lang.Object
    implements Consumer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void commit​(java.util.Set<SubscriptionPartitionOffset> offsets)  
      void consume​(java.lang.Runnable signalsInterrupt)  
      pl.allegro.tech.hermes.api.Subscription getSubscription()  
      void initialize()  
      boolean moveOffset​(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset offset)  
      void tearDown()
      Try to keep shutdown order the same as initialization so nothing will left to clean up when error occurs during initialization
      void updateSubscription​(pl.allegro.tech.hermes.api.Subscription newSubscription)  
      void updateTopic​(pl.allegro.tech.hermes.api.Topic newTopic)  
      • Methods inherited from class java.lang.Object

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

      • consume

        public void consume​(java.lang.Runnable signalsInterrupt)
        Specified by:
        consume in interface Consumer
      • tearDown

        public void tearDown()
        Try to keep shutdown order the same as initialization so nothing will left to clean up when error occurs during initialization
        Specified by:
        tearDown in interface Consumer
      • updateSubscription

        public void updateSubscription​(pl.allegro.tech.hermes.api.Subscription newSubscription)
        Specified by:
        updateSubscription in interface Consumer
      • updateTopic

        public void updateTopic​(pl.allegro.tech.hermes.api.Topic newTopic)
        Specified by:
        updateTopic in interface Consumer
      • moveOffset

        public boolean moveOffset​(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset offset)
        Specified by:
        moveOffset in interface Consumer
      • getSubscription

        public pl.allegro.tech.hermes.api.Subscription getSubscription()
        Specified by:
        getSubscription in interface Consumer