| java.lang.Object EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable EDU.oswego.cs.dl.util.concurrent.SynchronizedShort EDU.oswego.cs.dl.util.concurrent.WaitableShort
Constructor Summary | |
public | WaitableShort(short initialValue) Make a new WaitableShort with the given initial value,
and using its own internal lock. | public | WaitableShort(short initialValue, Object lock) Make a new WaitableShort with the given initial value,
and using the supplied lock. |
Method Summary | |
public short | add(short amount) | public boolean | commit(short assumedValue, short newValue) | public short | decrement() | public short | divide(short factor) | public short | increment() | public short | multiply(short factor) | public short | set(short newValue) | public short | subtract(short amount) | public void | whenEqual(short c, Runnable action) Wait until value equals c, then run action if nonnull. | public void | whenGreater(short c, Runnable action) wait until value greater than c, then run action if nonnull. | public void | whenGreaterEqual(short c, Runnable action) wait until value greater than or equal to c, then run action if nonnull. | public void | whenLess(short c, Runnable action) wait until value less than c, then run action if nonnull. | public void | whenLessEqual(short c, Runnable action) wait until value less than or equal to c, then run action if nonnull. | public void | whenNotEqual(short c, Runnable action) wait until value not equal to c, then run action if nonnull. |
WaitableShort | public WaitableShort(short initialValue)(Code) | | Make a new WaitableShort with the given initial value,
and using its own internal lock.
|
WaitableShort | public WaitableShort(short initialValue, Object lock)(Code) | | Make a new WaitableShort with the given initial value,
and using the supplied lock.
|
add | public short add(short amount)(Code) | | |
commit | public boolean commit(short assumedValue, short newValue)(Code) | | |
decrement | public short decrement()(Code) | | |
divide | public short divide(short factor)(Code) | | |
increment | public short increment()(Code) | | |
multiply | public short multiply(short factor)(Code) | | |
set | public short set(short newValue)(Code) | | |
subtract | public short subtract(short amount)(Code) | | |
whenEqual | public void whenEqual(short c, Runnable action) throws InterruptedException(Code) | | Wait until value equals c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenGreater | public void whenGreater(short c, Runnable action) throws InterruptedException(Code) | | wait until value greater than c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenGreaterEqual | public void whenGreaterEqual(short c, Runnable action) throws InterruptedException(Code) | | wait until value greater than or equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenLess | public void whenLess(short c, Runnable action) throws InterruptedException(Code) | | wait until value less than c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenLessEqual | public void whenLessEqual(short c, Runnable action) throws InterruptedException(Code) | | wait until value less than or equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenNotEqual | public void whenNotEqual(short c, Runnable action) throws InterruptedException(Code) | | wait until value not equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedShort | protected short value_(Code)(Java Doc)
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable | final protected Object lock_(Code)(Java Doc)
|
|
|