Interface AppendBatchSizeTracker


  • public interface AppendBatchSizeTracker
    • Method Detail

      • recordAppend

        void recordAppend​(long eventNumber,
                          int size)
        Records that an append has been sent.
        Parameters:
        eventNumber - the number of the event
        size - the size of the event
      • recordAck

        long recordAck​(long eventNumber)
        Records that one or more events have been acked.
        Parameters:
        eventNumber - the number of the last event
        Returns:
        The number of outstanding appends.
      • getAppendBlockSize

        int getAppendBlockSize()
        Returns the size that should be used for the next append block.
        Returns:
        Integer indicating block size that should be used for the next append.
      • getBatchTimeout

        int getBatchTimeout()
        Returns the timeout that should be used for append blocks.
        Returns:
        Integer indicating the batch timeout.