com.beetle.framework.appsrv
类 Counter

java.lang.Object
  继承者 com.beetle.framework.appsrv.Counter

public class Counter
extends java.lang.Object

支持高并发性能的计数器


构造方法摘要
Counter()
           
Counter(long initialValue)
           
 
方法摘要
 void decrease()
          减1
 long getCurrentValue()
          获取当前计数器的值
 void increase()
          加1
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Counter

public Counter()

Counter

public Counter(long initialValue)
方法详细信息

getCurrentValue

public long getCurrentValue()
获取当前计数器的值

返回:

increase

public void increase()
加1


decrease

public void decrease()
减1