Interface SegmentNodeStoreMonitor

  • All Known Implementing Classes:
    SegmentNodeStoreStats

    public interface SegmentNodeStoreMonitor
    SegmentNodeStoreMonitor is notified for commit related operations performed by SegmentNodeStore.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onCommit​(java.lang.Thread t, long time)
      Notifies the monitor when a new commit was persisted.
      void onCommitDequeued​(java.lang.Thread t, long time)
      Notifies the monitor when a queued commit was dequeued for processing.
      void onCommitQueued​(java.lang.Thread t, java.util.function.Supplier<GCGeneration> gcGeneration)
      Notifies the monitor when a new commit couldn't be persisted, but was queued for later retry.
    • Method Detail

      • onCommit

        void onCommit​(java.lang.Thread t,
                      long time)
        Notifies the monitor when a new commit was persisted.
        Parameters:
        t - the thread which initiated the write
        time - the time spent for persisting the commit
      • onCommitQueued

        void onCommitQueued​(java.lang.Thread t,
                            java.util.function.Supplier<GCGeneration> gcGeneration)
        Notifies the monitor when a new commit couldn't be persisted, but was queued for later retry.
        Parameters:
        t - the thread which initiated the write
        gcGeneration - the commit's gc generation
      • onCommitDequeued

        void onCommitDequeued​(java.lang.Thread t,
                              long time)
        Notifies the monitor when a queued commit was dequeued for processing.
        Parameters:
        t - the thread which initiated the write
        time - the time spent in the queue