Package org.jgroups.stack
Class ProtocolStack.RefCounter
java.lang.Object
org.jgroups.stack.ProtocolStack.RefCounter
- Enclosing class:
ProtocolStack
Keeps track of the number os times init()/destroy() and start()/stop have been called. The variables
init_count and start_count are incremented or decremented accoordingly. Note that this class is not synchronized
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortshortshortshortshortIncrements init_count, returns the old value before incrshorttoString()
-
Constructor Details
-
RefCounter
public RefCounter(short init_count, short start_count)
-
-
Method Details
-
getInitCount
public short getInitCount() -
getStartCount
public short getStartCount() -
incrementInitCount
public short incrementInitCount()Increments init_count, returns the old value before incr- Returns:
-
decrementInitCount
public short decrementInitCount() -
decrementStartCount
public short decrementStartCount() -
incrementStartCount
public short incrementStartCount() -
toString
-