Package co.paralleluniverse.strands
Class DoneSynchronizer
- java.lang.Object
-
- co.paralleluniverse.strands.DoneSynchronizer
-
- All Implemented Interfaces:
Condition
,Synchronization
public class DoneSynchronizer extends java.lang.Object implements Condition
-
-
Field Summary
Fields Modifier and Type Field Description static DoneSynchronizer
instance
-
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)
java.lang.Object
register()
void
signal()
void
signalAll()
void
unregister(java.lang.Object registrationToken)
-
-
-
Field Detail
-
instance
public static final DoneSynchronizer instance
-
-
Method Detail
-
register
public java.lang.Object register()
- Specified by:
register
in interfaceCondition
- Specified by:
register
in interfaceSynchronization
-
unregister
public void unregister(java.lang.Object registrationToken)
- Specified by:
unregister
in interfaceCondition
- Specified by:
unregister
in interfaceSynchronization
-
await
public void await(int iter) throws java.lang.InterruptedException, SuspendExecution
- Specified by:
await
in interfaceCondition
- 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
-
-