1 4 package com.tc.stats.counter.sampled; 5 6 import java.io.Serializable ; 7 8 11 public class TimeStampedCounterValue implements Serializable { 12 private final long counterValue; 13 private final long timestamp; 14 15 public TimeStampedCounterValue(long timestamp, long value) { 16 this.timestamp = timestamp; 17 this.counterValue = value; 18 } 19 20 public long getCounterValue() { 21 return this.counterValue; 22 } 23 24 public long getTimestamp() { 25 return this.timestamp; 26 } 27 28 public String toString() { 29 return "value: " + this.counterValue + ", timestamp: " + this.timestamp; 30 } 31 32 } 33 | Popular Tags |