public abstract class AbstractTimeSnapshot extends Object implements UniformTimeSnapshot
UniformTimeSnapshot.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTimeSnapshot(long timeInterval,
TimeUnit timeIntervalUnit)
Constructor to be used by subclasses overriding the base abstract uniform time snapshot class.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getRate(TimeUnit timeUnit)
The rate of values in this snapshot for one given time unit.
|
long |
getTimeInterval(TimeUnit timeUnit)
The time interval for which this snapshot was created.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMax, getMean, getMin, sizeprotected AbstractTimeSnapshot(long timeInterval,
TimeUnit timeIntervalUnit)
timeInterval - The time interval of this snapshot.timeIntervalUnit - The time interval unit.public long getTimeInterval(TimeUnit timeUnit)
UniformTimeSnapshotgetTimeInterval in interface UniformTimeSnapshottimeUnit - The time unit in which to return the time interval.public double getRate(TimeUnit timeUnit)
UniformTimeSnapshotgetRate in interface UniformTimeSnapshottimeUnit - The time unit at which to get the rateCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.