public class IntervalStatsLogger extends java.lang.Object implements IIntervalListener
| Constructor and Description |
|---|
IntervalStatsLogger(IStatsProducer aTarget,
Interval anInterval,
ILogOutput anOutput)
Creates a new IntervalStatsLogger and connects it to the given target, interval and output.
|
IntervalStatsLogger(IStatsProducer aTarget,
Interval anInterval,
ILogOutput anOutput,
TimeUnit unit)
Creates a new IntervalStatsLogger and connects it to the given target, interval and output.
|
| Modifier and Type | Method and Description |
|---|---|
TimeUnit |
getUnit() |
void |
intervalUpdated(Interval caller)
Called by the timer.
|
void |
setUnit(TimeUnit unit) |
public IntervalStatsLogger(IStatsProducer aTarget, Interval anInterval, ILogOutput anOutput, TimeUnit unit)
aTarget - the producer to loganInterval - the interval for which we are logginganOutput - logging output targetunit - time unit for nanoseconds conversionpublic IntervalStatsLogger(IStatsProducer aTarget, Interval anInterval, ILogOutput anOutput)
aTarget - the producer to loganInterval - the interval for which we are logginganOutput - logging output targetpublic void intervalUpdated(Interval caller)
intervalUpdated in interface IIntervalListenercaller - The Interval that calls this methodpublic TimeUnit getUnit()
public void setUnit(TimeUnit unit)
Copyright © 2010-2020 anotheria.net. All Rights Reserved.