Interface BatchLogObserver

    • Method Detail

      • onNext

        default boolean onNext​(StreamElement element)
        Read next data from the batch storage.
        Parameters:
        element - the retrieved data element
        Returns:
        true to continue processing, false otherwise
      • onNext

        default boolean onNext​(StreamElement element,
                               BatchLogObserver.OnNextContext context)
        Description copied from interface: LogObserver
        Process next record in the commit log.
        Specified by:
        onNext in interface LogObserver<Offset,​BatchLogObserver.OnNextContext>
        Parameters:
        element - the element written to the commit log
        context - a context that the application must use to confirm processing of the element. If the application fails to do so, the result is undefined.
        Returns:
        true if the processing should continue, false otherwise