|
JThreadKitTM v1.1.0 ( public members only)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.jthreadkit.ValueMonitor
ValueMonitor is used internally by JThreadKit.
You will only need to use this class on rare occasions when
you need to access instances of it that have been
constructed by a superclass you are extending.
The |
| Constructor Summary | |
ValueMonitor()
|
|
ValueMonitor(int initialValue,
int minValue,
int maxValue,
Object lock,
boolean useTimedOutException)
|
|
ValueMonitor(int minValue,
int maxValue,
Object lock)
|
|
ValueMonitor(Object lock)
|
|
| Method Summary | |
void |
addValueChangeListener(ValueChangeListener listener)
|
int |
decreaseValueBy(int decrement)
|
Object |
getLockObject()
|
int |
getMaxValue()
|
int |
getMinValue()
|
int |
getValue()
|
int |
increaseValueBy(int increment)
|
boolean |
isMaxValue()
|
boolean |
isMinValue()
|
boolean |
isUseTimedOutExceptionSet()
|
boolean |
isZero()
|
boolean |
removeValueChangeListener(ValueChangeListener listener)
|
void |
setMaxValue(int newMaxValue)
|
void |
setMinValue(int newMinValue)
|
void |
setUseTimedOutException(boolean useException)
|
void |
setValue(int newValue)
|
void |
setValueRange(int newMinValue,
int newMaxValue)
|
void |
shutdown()
|
void |
shutdownCheck()
|
String |
toString()
|
boolean |
waitForValueToChange(long msTimeout)
|
boolean |
waitForValueToClimbTo(int atLeast,
long msTimeout)
|
boolean |
waitForValueToFallTo(int atMost,
long msTimeout)
|
boolean |
waitUntilMaxValue(long msTimeout)
|
boolean |
waitUntilMinValue(long msTimeout)
|
boolean |
waitUntilValueInRange(int min,
int max,
long msTimeout)
|
boolean |
waitUntilValueIs(int val,
long msTimeout)
|
boolean |
waitUntilZero(long msTimeout)
|
boolean |
waitWhileMaxValue(long msTimeout)
|
boolean |
waitWhileMinValue(long msTimeout)
|
boolean |
waitWhileValueInRange(int min,
int max,
long msTimeout)
|
boolean |
waitWhileValueIs(int val,
long msTimeout)
|
boolean |
waitWhileZero(long msTimeout)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ValueMonitor(int initialValue,
int minValue,
int maxValue,
Object lock,
boolean useTimedOutException)
throws IllegalArgumentException
public ValueMonitor(int minValue,
int maxValue,
Object lock)
public ValueMonitor(Object lock)
public ValueMonitor()
| Method Detail |
public int getValue()
public void setValue(int newValue)
throws IllegalArgumentException,
ShutdownException
public int increaseValueBy(int increment)
throws IllegalArgumentException,
ShutdownException
public int decreaseValueBy(int decrement)
throws IllegalArgumentException,
ShutdownException
public void setMinValue(int newMinValue)
throws IllegalArgumentException,
ShutdownException
public int getMinValue()
public void setMaxValue(int newMaxValue)
throws IllegalArgumentException,
ShutdownException
public int getMaxValue()
public void setValueRange(int newMinValue,
int newMaxValue)
throws IllegalArgumentException,
ShutdownException
public void setUseTimedOutException(boolean useException)
throws ShutdownException
public boolean isUseTimedOutExceptionSet()
public Object getLockObject()
public boolean isMinValue()
public boolean isMaxValue()
public boolean isZero()
public boolean waitUntilValueInRange(int min,
int max,
long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException,
IllegalArgumentException
public boolean waitWhileValueInRange(int min,
int max,
long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException,
IllegalArgumentException
public boolean waitForValueToChange(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitForValueToFallTo(int atMost,
long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitForValueToClimbTo(int atLeast,
long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitWhileZero(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitUntilZero(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitWhileValueIs(int val,
long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitUntilValueIs(int val,
long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitWhileMaxValue(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitUntilMaxValue(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitWhileMinValue(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public boolean waitUntilMinValue(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
public final void shutdownCheck()
throws ShutdownException
public void shutdown()
public void addValueChangeListener(ValueChangeListener listener)
public boolean removeValueChangeListener(ValueChangeListener listener)
public String toString()
toString in class Object
|
JThreadKitTM v1.1.0 ( public members only)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||