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 and Description
    --- | ---
    `protected long` | `counter`
    `protected Level` | `level`
    `protected String` | `name`

  - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### level

          protected final Level level

    - #### counter

          protected long counter

    - #### name

          protected String name

  - ### Constructor Detail

    - #### CounterValue

          public CounterValue(String name,
                              Level level)

  - ### Method Detail

    - #### 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`

Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.