public class CountRecorder<T extends java.lang.Enum<T>> extends AbstractMetrics<T> implements WritableCounts<T>, Recorder<PartitionedCount<T>>
clazz| Constructor and Description |
|---|
CountRecorder(MetricRecorder<PartitionedCount<T>> metricRecorder) |
| Modifier and Type | Method and Description |
|---|---|
PartitionedCount<T> |
activeInterval() |
long |
activeIntervalStart() |
static <T extends java.lang.Enum<T>> |
builder(java.lang.Class<T> clazz) |
PartitionedCount<T> |
captureInterval() |
PartitionedCount<T> |
captureInterval(long nanotime) |
PartitionedCount<T> |
captureInterval(PartitionedCount<T> newInterval) |
PartitionedCount<T> |
captureInterval(PartitionedCount<T> newInterval,
long nanoTime) |
void |
write(T result,
long number,
long nanoTime) |
getMetricClazzclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricClazzpublic CountRecorder(MetricRecorder<PartitionedCount<T>> metricRecorder)
public void write(T result, long number, long nanoTime)
write in interface WritableCounts<T extends java.lang.Enum<T>>public PartitionedCount<T> activeInterval()
activeInterval in interface Recorder<PartitionedCount<T extends java.lang.Enum<T>>>public long activeIntervalStart()
activeIntervalStart in interface Recorder<PartitionedCount<T extends java.lang.Enum<T>>>public PartitionedCount<T> captureInterval()
captureInterval in interface Recorder<PartitionedCount<T extends java.lang.Enum<T>>>public PartitionedCount<T> captureInterval(long nanotime)
captureInterval in interface Recorder<PartitionedCount<T extends java.lang.Enum<T>>>public PartitionedCount<T> captureInterval(PartitionedCount<T> newInterval)
captureInterval in interface Recorder<PartitionedCount<T extends java.lang.Enum<T>>>public PartitionedCount<T> captureInterval(PartitionedCount<T> newInterval, long nanoTime)
captureInterval in interface Recorder<PartitionedCount<T extends java.lang.Enum<T>>>public static <T extends java.lang.Enum<T>> CountRecorderBuilder<T> builder(java.lang.Class<T> clazz)
Copyright © 2014 Tim Brooks. All Rights Reserved.