|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.timing.Pause
public final class Pause
Understands waiting for period of time or for a particular condition to be satisfied.
Method Summary | |
---|---|
static void |
pause()
Sleeps for 10 milliseconds. |
static void |
pause(Condition condition)
Waits until the given condition is satisfied. |
static void |
pause(Condition[] conditions)
Waits until the given conditions are satisfied. |
static void |
pause(Condition[] conditions,
long timeout)
Waits until the given conditions are satisfied. |
static void |
pause(Condition[] conditions,
Timeout timeout)
Waits until the given conditions are satisfied. |
static void |
pause(Condition condition,
long timeout)
Waits until the given condition is satisfied. |
static void |
pause(Condition condition,
Timeout timeout)
Waits until the given condition is satisfied. |
static void |
pause(long ms)
Sleeps for the specified time. |
static void |
pause(long timeout,
TimeUnit unit)
Sleeps for the specified time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void pause(Condition condition)
condition
- the condition to verify.
NullPointerException
- if the given condition is null
.
WaitTimedOutError
- if the wait times out (more than 30 seconds).public static void pause(Condition condition, Timeout timeout)
condition
- the condition to verify.timeout
- the timeout.
NullPointerException
- if the given timeout is null
.
NullPointerException
- if the given condition is null
.
WaitTimedOutError
- if the wait times out.public static void pause(Condition condition, long timeout)
condition
- the condition to verify.timeout
- the timeout (in milliseconds.)
NullPointerException
- if the given condition is null
.
WaitTimedOutError
- if the wait times out.public static void pause(Condition[] conditions)
conditions
- the conditions to verify.
NullPointerException
- if the array of conditions is null
.
IllegalArgumentException
- if the array of conditions is empty.
NullPointerException
- if the array of conditions has one or more null
values.
WaitTimedOutError
- if the wait times out (more than 30 seconds).public static void pause(Condition[] conditions, Timeout timeout)
conditions
- the conditions to verify.timeout
- the timeout.
NullPointerException
- if the given timeout is null
.
NullPointerException
- if the array of conditions is null
.
IllegalArgumentException
- if the array of conditions is empty.
NullPointerException
- if the array of conditions has one or more null
values.
WaitTimedOutError
- if the wait times out.public static void pause(Condition[] conditions, long timeout)
conditions
- the conditions to verify.timeout
- the timeout (in milliseconds.)
NullPointerException
- if the array of conditions is null
.
IllegalArgumentException
- if the array of conditions is empty.
NullPointerException
- if the array of conditions has one or more null
values.
WaitTimedOutError
- if the wait times out.public static void pause(long timeout, TimeUnit unit)
timeout
- the quantity of time units to sleep.unit
- the time units.
NullPointerException
- if unit
is null
.pause(long)
public static void pause(long ms)
To catch any InterruptedException
s that occur,
may be used
instead.
Thread.sleep(long)
()
ms
- the time to sleep in milliseconds.public static void pause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |