org.apache.axis2.util
Class Counter

java.lang.Object
  extended by org.apache.axis2.util.Counter

public class Counter
extends java.lang.Object

This class provides a simple zero-based counter with synchronized access.


Constructor Summary
Counter()
           
 
Method Summary
 long decrementAndGet()
           
 long get()
           
 long incrementAndGet()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter()
Method Detail

incrementAndGet

public long incrementAndGet()

decrementAndGet

public long decrementAndGet()

reset

public void reset()

get

public long get()


Copyright © 2007 Apache Web Services Project. All Rights Reserved.