Package org.jgroups.blocks.atomic
Interface BaseCounter
- 
- All Known Subinterfaces:
 AsyncCounter,Counter,SyncCounter
- All Known Implementing Classes:
 COUNTER.CounterImpl
public interface BaseCounterBase interface for all counters- Since:
 - 5.2
 - Author:
 - Bela Ban
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncCounterasync()Returns anAsyncCounterwrapper for this instance.java.lang.StringgetName()SyncCountersync()Returns aSyncCounterwrapper for this instance. 
 - 
 
- 
- 
Method Detail
- 
getName
java.lang.String getName()
- Returns:
 - The counter's name.
 
 
- 
sync
SyncCounter sync()
Returns aSyncCounterwrapper for this instance. If this counter is already synchronous, then this counter instance is returned (no-op)- Returns:
 - The 
SyncCounterinstance; 
 
- 
async
AsyncCounter async()
Returns anAsyncCounterwrapper for this instance. If this counter is already asynchronous, then this counter instance is returned (no-op)- Returns:
 - The 
AsyncCounterinstance. 
 
 - 
 
 -