public class SnapshotDurationTracker extends Object
| Constructor and Description |
|---|
SnapshotDurationTracker(AtomicCounter maxSnapshotDuration,
AtomicCounter snapshotDurationThresholdExceededCount,
long durationThresholdNs)
Create a tracker to track max snapshot duration and breaches of a threshold.
|
| Modifier and Type | Method and Description |
|---|---|
AtomicCounter |
maxSnapshotDuration()
Get max snapshot duration counter.
|
void |
onSnapshotBegin(long timeNanos)
Called when snapshotting has started.
|
void |
onSnapshotEnd(long timeNanos)
Called when snapshot has been taken.
|
AtomicCounter |
snapshotDurationThresholdExceededCount()
Get counter tracking number of times
durationThresholdNs was exceeded |
public SnapshotDurationTracker(AtomicCounter maxSnapshotDuration, AtomicCounter snapshotDurationThresholdExceededCount, long durationThresholdNs)
maxSnapshotDuration - counter for tracking.snapshotDurationThresholdExceededCount - counter for tracking.durationThresholdNs - to use for tracking breaches.public AtomicCounter maxSnapshotDuration()
public AtomicCounter snapshotDurationThresholdExceededCount()
durationThresholdNs was exceededpublic void onSnapshotBegin(long timeNanos)
timeNanos - snapshot start time in nanoseconds.public void onSnapshotEnd(long timeNanos)
timeNanos - snapshot end time in nanoseconds.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.