net.metanotion.util
Class OneShotLatch<T>
java.lang.Object
net.metanotion.util.OneShotLatch<T>
public final class OneShotLatch<T>
- extends java.lang.Object
|
Constructor Summary |
OneShotLatch(T initial,
java.util.Comparator<T> test,
java.lang.Runnable task,
java.util.concurrent.ExecutorService pool)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneShotLatch
public OneShotLatch(T initial,
java.util.Comparator<T> test,
java.lang.Runnable task,
java.util.concurrent.ExecutorService pool)
triggered
public boolean triggered()
trigger
public void trigger()
nextState
public boolean nextState(T current,
T next)
nextState
public void nextState(T value)
getState
public T getState()