public class BufferedRecorder<T> extends java.lang.Object implements Recorder<T>
RollingMetrics should be used.| Constructor and Description |
|---|
BufferedRecorder(FlipControl<T> flipControl,
int bufferSize) |
BufferedRecorder(FlipControl<T> flipControl,
int bufferSize,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
T |
activeInterval() |
long |
activeIntervalStart() |
T |
advance(T newValue,
long nanoTime) |
T |
captureInterval() |
T |
captureInterval(long nanotime) |
T |
captureInterval(T newInterval) |
T |
captureInterval(T newInterval,
long nanoTime) |
void |
init(Allocator<T> allocator) |
IntervalIterator<T> |
intervals() |
IntervalIterator<T> |
intervals(long nanoTime) |
public BufferedRecorder(FlipControl<T> flipControl, int bufferSize)
public BufferedRecorder(FlipControl<T> flipControl, int bufferSize, Clock clock)
public IntervalIterator<T> intervals()
public IntervalIterator<T> intervals(long nanoTime)
public T activeInterval()
activeInterval in interface Recorder<T>public long activeIntervalStart()
activeIntervalStart in interface Recorder<T>public T captureInterval()
captureInterval in interface Recorder<T>public T captureInterval(long nanotime)
captureInterval in interface Recorder<T>public T captureInterval(T newInterval)
captureInterval in interface Recorder<T>public T captureInterval(T newInterval, long nanoTime)
captureInterval in interface Recorder<T>Copyright © 2014 Tim Brooks. All Rights Reserved.