|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.util.WaitUntil
public class WaitUntil
Utility methods for synchronising on asynchronous processes
| Nested Class Summary | |
|---|---|
static interface |
WaitUntil.WaitCondition
The condition to determine when to stop waiting |
| Method Summary | |
|---|---|
static boolean |
invoke(WaitUntil.WaitCondition waitCondition)
Invokes the wait condition, trying every second for 10 seconds |
static boolean |
invoke(WaitUntil.WaitCondition waitCondition,
int tries)
Invokes the wait condition, trying every second for the configured seconds |
static boolean |
invoke(WaitUntil.WaitCondition waitCondition,
int time,
java.util.concurrent.TimeUnit unit,
int retryInterval)
Invokes the wait condition, trying every second for the configured seconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean invoke(WaitUntil.WaitCondition waitCondition)
waitCondition - The condition that determines when to stop waiting
public static boolean invoke(WaitUntil.WaitCondition waitCondition,
int tries)
waitCondition - The condition that determines when to stop waitingtries - The number of tries to attempt
public static boolean invoke(WaitUntil.WaitCondition waitCondition,
int time,
java.util.concurrent.TimeUnit unit,
int retryInterval)
waitCondition - The condition that determines when to stop waitingtime - the amount of time to waitunit - the time unit time is specified inretryInterval - how often to re-check the condition (specified in
the supplied TimeUnit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||