Interface StreamLevelConsumer


  • @Public
    @Stable
    public interface StreamLevelConsumer
    Interface for a consumer that consumes at stream level and is unaware of any partitions of the stream
    • Method Summary

      Modifier and Type Method Description
      void commit()
      Commit the offsets consumed so far The next call to consume should exclude all events consumed before the commit was called, and start from newer events not yet consumed
      GenericRow next​(GenericRow destination)
      Get next row from the stream and decode it into a generic row
      void shutdown()
      Shutdown the stream consumer
      void start()
      Initialize and start the stream level consumer
    • Method Detail

      • start

        void start()
            throws Exception
        Initialize and start the stream level consumer
        Throws:
        Exception
      • next

        GenericRow next​(GenericRow destination)
        Get next row from the stream and decode it into a generic row
        Parameters:
        destination -
        Returns:
      • commit

        void commit()
        Commit the offsets consumed so far The next call to consume should exclude all events consumed before the commit was called, and start from newer events not yet consumed
      • shutdown

        void shutdown()
               throws Exception
        Shutdown the stream consumer
        Throws:
        Exception