Package co.paralleluniverse.strands
Class OwnedSynchronizer
- java.lang.Object
-
- co.paralleluniverse.strands.ConditionSynchronizer
-
- co.paralleluniverse.strands.OwnedSynchronizer
-
- All Implemented Interfaces:
Condition
,Synchronization
public class OwnedSynchronizer extends ConditionSynchronizer implements Condition
-
-
Field Summary
-
Fields inherited from class co.paralleluniverse.strands.ConditionSynchronizer
RECORDER
-
-
Constructor Summary
Constructors Constructor Description OwnedSynchronizer(java.lang.Object owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
register()
void
signal()
void
signalAll()
void
signalAndWait()
void
unregister(java.lang.Object registrationToken)
-
Methods inherited from class co.paralleluniverse.strands.ConditionSynchronizer
await, await, awaitNanos
-
-
-
-
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
-
signalAndWait
public void signalAndWait() throws SuspendExecution
- Throws:
SuspendExecution
-
-