public class TimeStampedCounterValue
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private long |
counterValue |
private long |
timestamp |
Constructor and Description |
---|
TimeStampedCounterValue(long timestamp,
long value)
Constructor accepting the value of both timestamp and the counter value.
|
Modifier and Type | Method and Description |
---|---|
long |
getCounterValue()
Get the counter value
|
long |
getTimestamp()
Get value of the timestamp
|
java.lang.String |
toString() |
public TimeStampedCounterValue(long timestamp, long value)
timestamp
- value
- public long getCounterValue()
public long getTimestamp()
public java.lang.String toString()
toString
in class java.lang.Object