TYPE
- public class WaitForFlagChange<TYPE> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
WaitForFlagChange.IAccept<TYPE> |
Constructor and Description |
---|
WaitForFlagChange(IFlag<TYPE> flag)
Wait for the next flag change.
|
WaitForFlagChange(IFlag<TYPE> flag,
Collection<TYPE> waitingFor) |
WaitForFlagChange(IFlag<TYPE> flag,
TYPE waitingFor) |
WaitForFlagChange(IFlag<TYPE> flag,
TYPE[] waitingFor) |
WaitForFlagChange(IFlag<TYPE> flag,
WaitForFlagChange.IAccept<TYPE> waitingFor) |
Modifier and Type | Method and Description |
---|---|
TYPE |
await()
Note that you may call only await() from one thread! If the instance is already in used
it may produce unwanted behavior (e.g.
|
TYPE |
await(long timeout,
TimeUnit timeUnit)
Note that you may call only await() from one thread! If the instance is already in used
it may produce unwanted behavior.
|
public WaitForFlagChange(IFlag<TYPE> flag)
flag
- public WaitForFlagChange(IFlag<TYPE> flag, WaitForFlagChange.IAccept<TYPE> waitingFor)
public WaitForFlagChange(IFlag<TYPE> flag, Collection<TYPE> waitingFor)
public TYPE await() throws PogamutInterruptedException
InterruptedException
PogamutInterruptedException
public TYPE await(long timeout, TimeUnit timeUnit) throws PogamutInterruptedException
Returns null if desired value hasn't been set at the flag before timeout.
timeout
- timeUnit
- PogamutInterruptedException
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.