Package tigase.stats

# Class CounterValue

java.lang.Object
tigase.stats.CounterValue

Direct Known Subclasses:
  `Counter`, `CounterPerSecond`

public class CounterValue extends Object

Author:
  andrzej

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected long`
  `counter`
  `protected final Level`
  `level`
  `protected String`
  `name`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CounterValue(String name, Level level)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Level`
  `getLevel()`
  `String`
  `getName()`
  `long`
  `getValue()`
  `void`
  `inc()`
  `void`
  `setName(String name)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### level

    protected final Level level

  - ### counter

    protected long counter

  - ### name

    protected String name

- ## Constructor Details

  - ### CounterValue

    public CounterValue(String name, Level level)

- ## Method Details

  - ### getName

    public String getName()

  - ### setName

    public void setName(String name)

  - ### inc

    public void inc()

  - ### getLevel

    public Level getLevel()

  - ### getValue

    public long getValue()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`