Class RaftLogFlusher.NoopFlusher

java.lang.Object
io.atomix.raft.storage.log.RaftLogFlusher.NoopFlusher
All Implemented Interfaces:
RaftLogFlusher, CloseableSilently, AutoCloseable
Enclosing interface:
RaftLogFlusher

public static final class RaftLogFlusher.NoopFlusher extends Object implements RaftLogFlusher
An implementation of RaftLogFlusher which does nothing. When this is the configured implementation, the journal is flushed only before a snapshot is taken.
  • Constructor Details

    • NoopFlusher

      public NoopFlusher()
  • Method Details

    • flush

      public void flush(Journal ignoredJournal)
      Description copied from interface: RaftLogFlusher
      Signals that there is data to be flushed in the journal. The implementation may or may not immediately flush this.
      Specified by:
      flush in interface RaftLogFlusher
      Parameters:
      ignoredJournal - the journal to flush