TYPE - REASON - public interface ReasonFlagListener<TYPE,REASON> extends FlagListener<TYPE>
ReasonFlag. It allows to sense reasons of the changes. It provides
a simple message passing mechanism along with changes in the flag.
For instance, it allows us to send reason why the Mediator has been shut down.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ReasonFlagListener.FlagListenerAdapter<T,R>
Adapter for the simple FlagListener that does not care about reasons (the reason is masked
during the call...)
|
static class |
ReasonFlagListener.ReasonFlagListenerNotifier<T,R>
Notifier for the ReasonFlagListener.
|
FlagListener.FlagListenerNotifier<T>| Modifier and Type | Method and Description |
|---|---|
void |
flagChanged(TYPE changedValue,
REASON reason)
This method is called whenever the flag has changed its value and the changer
also specified a reason for this change.
|
flagChangedCopyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.