L - defines the message listener typeA - defines the basic event typeM - defines the basic message typepublic interface Coordinator<L,A,M>
| Modifier and Type | Method and Description |
|---|---|
BlockingQueue<Message<A,M>> |
getMessageQueue()
Returns the message queue of coordinator.
|
void |
handleMessage(String id,
Message<A,M> message)
Handles message to specific component addressed by the id.
|
<P extends Component<L,M>> |
setComponentHandler(ComponentHandler<P,Message<A,M>> handler)
set associated componentHandler
|
void |
setDelegateQueue(BlockingQueue<DelegateDTO<A,M>> delegateQueue)
Set the delegate queue, which delegates messages to correct responsible perspective.
|
<P extends Component<L,M>> |
setPerspectiveHandler(ComponentHandler<P,Message<A,M>> handler)
set associated perspectiveHandler
|
void handleMessage(String id, Message<A,M> message)
id, - the target id.message, - the messageBlockingQueue<Message<A,M>> getMessageQueue()
<P extends Component<L,M>> void setComponentHandler(ComponentHandler<P,Message<A,M>> handler)
,
- is type of Componenthandler, - the component handler that handles component execution.<P extends Component<L,M>> void setPerspectiveHandler(ComponentHandler<P,Message<A,M>> handler)
,
- is type of Componenthandler, - the perspective handler that handles perspective execution.void setDelegateQueue(BlockingQueue<DelegateDTO<A,M>> delegateQueue)
delegateQueue, - The delegate queue.Copyright © 2014. All rights reserved.