public interface MessageDispatcher
Modifier and Type | Method and Description |
---|---|
boolean |
addHandler(MessageHandler handler)
Add a message handler.
|
boolean |
dispatch(Message<?> message)
Dispatch the message.
|
int |
getHandlerCount()
Return the current handler count.
|
boolean |
removeHandler(MessageHandler handler)
Remove a message handler.
|
boolean addHandler(MessageHandler handler)
handler
- the handler.boolean removeHandler(MessageHandler handler)
handler
- the handler.boolean dispatch(Message<?> message)
message
- the message.int getHandlerCount()