public class FlagInteger extends Flag<Integer> implements Serializable
The .setFlag() mechanism is very complex and it is sometimes not viable to do .setFlag() call inside synchronized statements (deadlocks!) therefore we have to solve it inside the class.
Modifier and Type | Class and Description |
---|---|
static class |
FlagInteger.DoInSyncWithReason<T,R>
This class extends the DoInSync of the reason that was passed along.
|
Flag.DoInSync<T>
Constructor and Description |
---|
FlagInteger() |
FlagInteger(Integer initial) |
Modifier and Type | Method and Description |
---|---|
void |
decrement(int number) |
void |
increment(int number) |
addListener, addStrongListener, clearListeners, defreeze, freeze, getFlag, getImmutable, inSync, inSyncInner, isFrozen, isListenning, isNone, isOne, removeAllListeners, removeListener, setFlag, waitFor, waitFor, waitForChange, waitForChange
public FlagInteger()
public FlagInteger(Integer initial)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.