Interface SegmentNodeStoreMonitor
-
- All Known Implementing Classes:
SegmentNodeStoreStats
public interface SegmentNodeStoreMonitor
SegmentNodeStoreMonitor is notified for commit related operations performed by SegmentNodeStore.
-
-
Field Summary
Fields Modifier and Type Field Description static SegmentNodeStoreMonitor
DEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCommit(Thread t, long time)
Notifies the monitor when a new commit was persisted.void
onCommitDequeued(Thread t, long time)
Notifies the monitor when a queued commit was dequeued for processing.void
onCommitQueued(Thread t, Supplier<GCGeneration> gcGeneration)
Notifies the monitor when a new commit couldn't be persisted, but was queued for later retry.
-
-
-
Field Detail
-
DEFAULT
static final SegmentNodeStoreMonitor DEFAULT
-
-
Method Detail
-
onCommit
void onCommit(Thread t, long time)
Notifies the monitor when a new commit was persisted.- Parameters:
t
- the thread which initiated the writetime
- the time spent for persisting the commit
-
onCommitQueued
void onCommitQueued(Thread t, 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 writegcGeneration
- the commit's gc generation
-
onCommitDequeued
void onCommitDequeued(Thread t, long time)
Notifies the monitor when a queued commit was dequeued for processing.- Parameters:
t
- the thread which initiated the writetime
- the time spent in the queue
-
-