Interface RaftCommitListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RaftCommitListener
Will be notified when a new batch is committed. It is not guaranteed to get notified for each index. For example, if records at index 1 to 5 are committed together, the listener can be invoked just once with index 5.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCommit(long index)
     
  • Method Details

    • onCommit

      void onCommit(long index)