|
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.Waiter.Condition
public class Waiter.Condition
Used to associate additional conditions on an existing Waiter.
| Method Summary | |
|---|---|
Waiter |
getOwner()
Returns the Waiter 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 InterruptException,
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 Waiter for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptException
ShutdownException
public void waitUntilTrue()
throws InterruptException,
ShutdownException
expression to evaluate to true.
See the Universal Behavior section in the class-level documentation
of Waiter for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptException
ShutdownException
public void waitUntilTrueWithTimedOutException(long msTimeout)
throws InterruptException,
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 Waiter for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptException
TimedOutException
ShutdownException
public boolean waitWhileTrue(long msTimeout)
throws InterruptException,
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 Waiter for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptException
ShutdownException
public void waitWhileTrue()
throws InterruptException,
ShutdownException
expression to evaluate to false.
See the Universal Behavior section in the class-level documentation
of Waiter for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptException
ShutdownException
public void waitWhileTrueWithTimedOutException(long msTimeout)
throws InterruptException,
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 Waiter for details about the timeouts, return
values, exceptions potentially thrown, and other general behavior.
InterruptException
TimedOutException
ShutdownExceptionpublic Waiter getOwner()
Waiter that owns this condition.
|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||