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