public class ConditionLatch extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ConditionLatch.Predicate |
Constructor and Description |
---|
ConditionLatch() |
Modifier and Type | Method and Description |
---|---|
ConditionLatch |
pollingInterval(long duration,
TimeUnit timeunit) |
ConditionLatch |
timeout(long timeout,
TimeUnit timeunit) |
ConditionLatch |
timeoutErrorMessage(String timeoutErrorMessage) |
void |
waitFor(ConditionLatch.Predicate predicate) |
public ConditionLatch timeoutErrorMessage(String timeoutErrorMessage)
public ConditionLatch pollingInterval(long duration, TimeUnit timeunit)
public ConditionLatch timeout(long timeout, TimeUnit timeunit)
public void waitFor(ConditionLatch.Predicate predicate) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
Copyright © GigaSpaces.