Package org.jgroups.protocols
Class COUNTER.CounterViewImpl
- java.lang.Object
-
- org.jgroups.protocols.COUNTER.CounterViewImpl
-
- All Implemented Interfaces:
CounterView
- Enclosing class:
- COUNTER
private static class COUNTER.CounterViewImpl extends java.lang.Object implements CounterView
-
-
Field Summary
Fields Modifier and Type Field Description private longvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateCounterViewImpl(long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget()voidset(long value)Sets the counter's value.
-
-
-
Method Detail
-
get
public long get()
- Specified by:
getin interfaceCounterView- Returns:
- The counter's value.
-
set
public void set(long value)
Description copied from interface:CounterViewSets the counter's value.- Specified by:
setin interfaceCounterView- Parameters:
value- The new value.
-
-