|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.programix.thread.ix.WaiterIx.Condition
public class WaiterIx.Condition
Used to associate additional conditions on an existing WaiterIx.
| Method Summary | |
|---|---|
WaiterIx |
getOwner()
Returns the WaiterIx that owns this condition. |
boolean |
isFalse()
Returns true if the expression specified at construction currently evaluates to false. |
boolean |
isTrue()
Returns true if the expression specified at construction currently evaluates to true. |
void |
waitUntilTrue()
Waits (for an unlimited amount of time) for the supplied expression to evaluate to true. |
boolean |
waitUntilTrue(long msTimeout)
Waits (up to a maximum amount of time) for the supplied expression to evaluate to true. |
void |
waitUntilTrueWithTimedOutException(long msTimeout)
Waits (up to a maximum amount of time) for the supplied expression to evaluate to true. |
void |
waitWhileTrue()
Waits (for an unlimited amount of time) for the supplied expression to evaluate to false. |
boolean |
waitWhileTrue(long msTimeout)
Waits (up to a maximum amount of time) for the supplied expression to evaluate to false. |
void |
waitWhileTrueWithTimedOutException(long msTimeout)
Waits (up to a maximum amount of time) for the supplied expression to evaluate to false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isTrue()
throws ShutdownException
ShutdownException - if already shutdown.
public boolean isFalse()
throws ShutdownException
ShutdownException - if already shutdown.
public boolean waitUntilTrue(long msTimeout)
throws InterruptedException,
ShutdownException
expression to evaluate to true.
Uses a return value to signal whether or not a timeout occurred.
See the Universal Behavior section in the class-level documentation
of WaiterIx for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptedException
ShutdownException
public void waitUntilTrue()
throws InterruptedException,
ShutdownException
expression to evaluate to true.
See the Universal Behavior section in the class-level documentation
of WaiterIx for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptedException
ShutdownException
public void waitUntilTrueWithTimedOutException(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
expression to evaluate to true.
Throws TimedOutException to signal that a timeout occurred.
See the Universal Behavior section in the class-level documentation
of WaiterIx for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptedException
TimedOutException
ShutdownException
public boolean waitWhileTrue(long msTimeout)
throws InterruptedException,
ShutdownException
expression to evaluate to false.
Uses a return value to signal whether or not a timeout occurred.
See the Universal Behavior section in the class-level documentation
of WaiterIx for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptedException
ShutdownException
public void waitWhileTrue()
throws InterruptedException,
ShutdownException
expression to evaluate to false.
See the Universal Behavior section in the class-level documentation
of WaiterIx for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptedException
ShutdownException
public void waitWhileTrueWithTimedOutException(long msTimeout)
throws InterruptedException,
TimedOutException,
ShutdownException
expression to evaluate to false.
Throws TimedOutException to signal that a timeout occurred.
See the Universal Behavior section in the class-level documentation
of WaiterIx for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptedException
TimedOutException
ShutdownExceptionpublic WaiterIx getOwner()
WaiterIx that owns this condition.
|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||