|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IReasonFlag<TYPE,REASON>
Allows you to pass reasons of flag change along with new value of the flag.
Note that implementation must be Serializable
Method Summary | |
---|---|
void |
setFlag(TYPE newValue,
REASON reasonForChange)
Changes the flag and informs all listeners. |
Methods inherited from interface cz.cuni.amis.utils.flag.IFlag |
---|
addListener, addStrongListener, clearListeners, defreeze, freeze, getFlag, getImmutable, inSync, isFrozen, isListenning, removeAllListeners, removeListener, setFlag |
Method Detail |
---|
void setFlag(TYPE newValue, REASON reasonForChange)
Should not produce any dead-locks even though it is synchronized method.
newValue
-
InterruptedRuntimeException
- if interrupted during the await on the freeze latch
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |