org.jgroups.stack
Class ProtocolStack.RefCounter
java.lang.Object
org.jgroups.stack.ProtocolStack.RefCounter
- Enclosing class:
- ProtocolStack
public static class ProtocolStack.RefCounter
- extends java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProtocolStack.RefCounter
public ProtocolStack.RefCounter(short init_count,
short start_count)
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
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.