Package org.jgroups.protocols
Class COUNTER.CounterViewImpl
java.lang.Object
org.jgroups.protocols.COUNTER.CounterViewImpl
- All Implemented Interfaces:
CounterView
- Enclosing class:
COUNTER
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
private long value
-
-
Constructor Details
-
CounterViewImpl
private CounterViewImpl(long value)
-
-
Method Details
-
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.
-