Package co.paralleluniverse.strands
Class ConditionSynchronizer
- java.lang.Object
-
- co.paralleluniverse.strands.ConditionSynchronizer
-
- All Implemented Interfaces:
Condition
,Synchronization
- Direct Known Subclasses:
ConditionSelector
,OwnedSynchronizer
,SimpleConditionSynchronizer
public abstract class ConditionSynchronizer extends java.lang.Object implements Condition
-
-
Field Summary
Fields Modifier and Type Field Description static co.paralleluniverse.common.monitoring.FlightRecorder
RECORDER
-
Constructor Summary
Constructors Constructor Description ConditionSynchronizer(java.lang.Object owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await(int iter)
void
await(int iter, long timeout, java.util.concurrent.TimeUnit unit)
void
awaitNanos(int iter, long timeoutNanos)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface co.paralleluniverse.strands.Condition
register, signal, signalAll, unregister
-
-
-
-
Method Detail
-
await
public void await(int iter) throws java.lang.InterruptedException, SuspendExecution
- Specified by:
await
in interfaceCondition
- Throws:
java.lang.InterruptedException
SuspendExecution
-
awaitNanos
public void awaitNanos(int iter, long timeoutNanos) throws java.lang.InterruptedException, SuspendExecution
- Throws:
java.lang.InterruptedException
SuspendExecution
-
await
public void await(int iter, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, SuspendExecution
- Specified by:
await
in interfaceCondition
- Throws:
java.lang.InterruptedException
SuspendExecution
-
-