public abstract class WaitFor
extends java.lang.Object
Constructor and Description |
---|
WaitFor()
Blocking call
|
WaitFor(int timeoutMsecs) |
WaitFor(int timeoutMsecs,
int step)
Blocking call
|
WaitFor(int timeoutMsecs,
java.lang.Runnable toRunOnTrue)
Non-blocking call
|
Modifier and Type | Method and Description |
---|---|
void |
assertCompleted() |
void |
assertCompleted(java.lang.String message) |
protected abstract boolean |
condition() |
long |
getWaitedTime() |
boolean |
isConditionRealized() |
boolean |
isInterrupted() |
void |
join() |
public WaitFor()
public WaitFor(int timeoutMsecs)
public WaitFor(int timeoutMsecs, int step)
public WaitFor(int timeoutMsecs, java.lang.Runnable toRunOnTrue)
public long getWaitedTime()
public boolean isConditionRealized()
public boolean isInterrupted()
protected abstract boolean condition()
public void assertCompleted()
public void assertCompleted(java.lang.String message)
public void join() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.ExecutionException