com.sleepycat.je.utilint
Class AtomicLongStat
java.lang.Object
com.sleepycat.je.utilint.Stat<Long>
com.sleepycat.je.utilint.AtomicLongStat
- All Implemented Interfaces:
- Serializable, Cloneable
public class AtomicLongStat
- extends Stat<Long>
- implements Cloneable
A long JE stat.
- See Also:
- Serialized Form
AtomicLongStat
public AtomicLongStat(StatGroup group,
StatDefinition definition)
get
public Long get()
- Specified by:
get
in class Stat<Long>
- Returns:
- the stat value.
set
public void set(Long newValue)
- Description copied from class:
Stat
- Set the stat value.
- Specified by:
set
in class Stat<Long>
increment
public void increment()
decrement
public void decrement()
add
public void add(long count)
add
public void add(Stat<Long> other)
- Description copied from class:
Stat
- Add the value of "other" to this stat.
- Specified by:
add
in class Stat<Long>
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<Long>
copy
public AtomicLongStat copy()
- Overrides:
copy
in class Stat<Long>
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<Long>
Copyright (c) 2004-2010 Oracle. All rights reserved.