local.test
Class Counter

java.lang.Object
  extended by local.test.Counter

public class Counter
extends java.lang.Object


Constructor Summary
Counter()
           
 
Method Summary
 boolean await(int value, long time, java.util.concurrent.TimeUnit unit)
          waits at most time/unit long for a change that reaches the expected value
 void dec()
           
 int getValue()
           
 void inc()
           
 void setValue(int value)
           
 
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

inc

public void inc()

dec

public void dec()

getValue

public int getValue()

setValue

public void setValue(int value)

await

public boolean await(int value,
                     long time,
                     java.util.concurrent.TimeUnit unit)
waits at most time/unit long for a change that reaches the expected value

Parameters:
value -
time -
unit -
Returns:


Copyright © 2011. All Rights Reserved.