Class AbstractWaitingCondition
- java.lang.Object
-
- com.conversantmedia.util.concurrent.AbstractWaitingCondition
-
public abstract class AbstractWaitingCondition extends Object
Created by jcairns on 12/11/14.
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_PROG_YIELDstatic longPARK_TIMEOUT
-
Constructor Summary
Constructors Constructor Description AbstractWaitingCondition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidawait()voidawaitNanos(long timeout)voidsignal()abstract booleantest()code below will block until test() returns false
-
-
-
Field Detail
-
PARK_TIMEOUT
public static final long PARK_TIMEOUT
- See Also:
- Constant Field Values
-
MAX_PROG_YIELD
public static final int MAX_PROG_YIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
test
public abstract boolean test()
code below will block until test() returns false- Returns:
- boolean - true if condition is not satisfied
-
awaitNanos
public void awaitNanos(long timeout) throws InterruptedException- Throws:
InterruptedException
-
await
public void await() throws InterruptedException- Throws:
InterruptedException
-
signal
public void signal()
-
-