Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.quartz.utils.counter.sampled
Class TimeStampedCounterValue

    java.lang.Object
      org.quartz.utils.counter.sampled.TimeStampedCounterValue

All Implemented Interfaces:
  Serializable

    public class TimeStampedCounterValue

extends Object
implements Serializable

A counter value at a particular time instance

Since:
  1.8
Author:
  Abhishek Sanoujam
See Also:
  Serialized Form

Constructor Summary
`TimeStampedCounterValue(long timestamp, long value)` Constructor accepting the value of both timestamp and the counter value.

Method Summary
`long` | `getCounterValue()` Get the counter value
`long` | `getTimestamp()` Get value of the timestamp
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### TimeStampedCounterValue

    public TimeStampedCounterValue(long timestamp,
                                   long value)

  Constructor accepting the value of both timestamp and the counter value.

  Parameters:
    `timestamp` -
    `value` -

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 String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2001-2016, Terracotta, Inc.