L
- defines the action listener typeA
- defines the basic action typeM
- defines the basic message typepublic interface ICoordinator<L,A,M>
Modifier and Type | Method and Description |
---|---|
<P extends IComponent<L,A,M>> |
getComponentHandler()
Returns the associated componentHandler.
|
java.util.concurrent.BlockingQueue<IAction<A,M>> |
getMessageQueue()
Returns the message queue of coordinator.
|
<P extends IComponent<L,A,M>> |
handleActive(P component,
IAction<A,M> action)
Handle a message to an active component.
|
<P extends IComponent<L,A,M>> |
handleInActive(P component,
IAction<A,M> action)
Handle a message to an inactive component.
|
void |
handleMessage(java.lang.String id,
IAction<A,M> action)
Handles message to specific component addressed by the id.
|
<P extends IComponent<L,A,M>> |
setComponentHandler(IComponentHandler<P,IAction<A,M>> handler)
set associated componentHandler
|
void handleMessage(java.lang.String id, IAction<A,M> action)
id
- action
- <P extends IComponent<L,A,M>> void handleActive(P component, IAction<A,M> action)
component
- action
- <P extends IComponent<L,A,M>> void handleInActive(P component, IAction<A,M> action)
component
- action
- java.util.concurrent.BlockingQueue<IAction<A,M>> getMessageQueue()
<P extends IComponent<L,A,M>> IComponentHandler<P,IAction<A,M>> getComponentHandler()
<P extends IComponent<L,A,M>> void setComponentHandler(IComponentHandler<P,IAction<A,M>> handler)
handler
-