Package org.quartz.utils.counter.sampled
Class TimeStampedCounterValue
- java.lang.Object
-
- org.quartz.utils.counter.sampled.TimeStampedCounterValue
-
- All Implemented Interfaces:
java.io.Serializable
public class TimeStampedCounterValue extends java.lang.Object implements java.io.SerializableA counter value at a particular time instance- Since:
- 1.8
- Author:
- Abhishek Sanoujam
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeStampedCounterValue(long timestamp, long value)Constructor accepting the value of both timestamp and the counter value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCounterValue()Get the counter valuelonggetTimestamp()Get value of the timestampjava.lang.StringtoString()
-
-
-
Method Detail
-
getCounterValue
public long getCounterValue()
Get the counter value- Returns:
- The counter value
-
getTimestamp
public long getTimestamp()
Get value of the timestamp- Returns:
- the timestamp associated with the current value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-