|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object service.MessageDispatcher
public class MessageDispatcher
Field Summary | |
---|---|
protected java.util.HashMap<MessageType,SynchronizedBuffer> |
serviceMap
This hash map associates a buffer to each type of message |
Constructor Summary | |
---|---|
MessageDispatcher()
|
Method Summary | |
---|---|
SynchronizedBuffer<Message> |
associateService(MessageType type)
For a given message type, create and associate a dedicated buffer |
void |
newEvent(TypedMessage msg)
Depending on the type of the message, put this message in the associated buffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<MessageType,SynchronizedBuffer> serviceMap
Constructor Detail |
---|
public MessageDispatcher()
Method Detail |
---|
public SynchronizedBuffer<Message> associateService(MessageType type)
type
- the type of the message
public void newEvent(TypedMessage msg)
msg
- the message to dispatch to the associated buffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |