L - defines the message listener typeA - defines the basic event typeM - defines the basic message typepublic interface ICoordinator<L,A,M>
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.BlockingQueue<Message<A,M>> |
getMessageQueue()
Returns the message queue of coordinator.
|
void |
handleMessage(java.lang.String id,
Message<A,M> message)
Handles message to specific component addressed by the id.
|
<P extends IComponent<L,M>> |
setComponentHandler(IComponentHandler<P,Message<A,M>> handler)
set associated componentHandler
|
void |
setDelegateQueue(java.util.concurrent.BlockingQueue<IDelegateDTO<A,M>> delegateQueue)
Set the delegate queue, which delegates messages to correct responsible perspective.
|
<P extends IComponent<L,M>> |
setPerspectiveHandler(IComponentHandler<P,Message<A,M>> handler)
set associated perspectiveHandler
|
void handleMessage(java.lang.String id,
Message<A,M> message)
id, - the target id.message, - the messagejava.util.concurrent.BlockingQueue<Message<A,M>> getMessageQueue()
<P extends IComponent<L,M>> void setComponentHandler(IComponentHandler<P,Message<A,M>> handler)
,
- is type of IComponenthandler, - the component handler that handles component execution.<P extends IComponent<L,M>> void setPerspectiveHandler(IComponentHandler<P,Message<A,M>> handler)
,
- is type of IComponenthandler, - the perspective handler that handles perspective execution.void setDelegateQueue(java.util.concurrent.BlockingQueue<IDelegateDTO<A,M>> delegateQueue)
delegateQueue, - The delegate queue.