com.sleepycat.je.utilint
Class AtomicIntStat
java.lang.Object
com.sleepycat.je.utilint.Stat<Integer>
com.sleepycat.je.utilint.AtomicIntStat
- All Implemented Interfaces:
- Cloneable
public class AtomicIntStat
- extends Stat<Integer>
- implements Cloneable
A int JE stat.
AtomicIntStat
public AtomicIntStat(StatGroup group,
StatDefinition definition)
get
public Integer get()
- Specified by:
get
in class Stat<Integer>
- Returns:
- the stat value.
set
public void set(Integer newValue)
- Description copied from class:
Stat
- Set the stat value.
- Specified by:
set
in class Stat<Integer>
increment
public void increment()
add
public void add(int count)
add
public void add(Stat<Integer> other)
- Description copied from class:
Stat
- Add the value of "other" to this stat.
- Specified by:
add
in class Stat<Integer>
clear
public void clear()
- Description copied from class:
Stat
- Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called.
- Specified by:
clear
in class Stat<Integer>
copy
public AtomicIntStat copy()
- Overrides:
copy
in class Stat<Integer>
getFormattedValue
String getFormattedValue()
- Description copied from class:
Stat
- Return a string with the stat value formatted as appropriate for
its type.
- Specified by:
getFormattedValue
in class Stat<Integer>
Copyright (c) 2004-2010 Oracle. All rights reserved.