|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageDispatcher
Strategy interface for dispatching messages.
| Method Summary | |
|---|---|
boolean |
send(Message<?> message)
Send a Message to this target. |
void |
setSendTimeout(long sendTimeout)
Specify the timeout for sending to a target (in milliseconds). |
boolean |
subscribe(MessageTarget target)
Register a MessageTarget as a subscriber to this source. |
boolean |
unsubscribe(MessageTarget target)
Remove a MessageTarget from the subscribers of this source. |
| Method Detail |
|---|
boolean send(Message<?> message)
MessageTargetMessage to this target. May throw a RuntimeException for non-recoverable
errors. Otherwise, if the Message cannot be sent for a non-fatal reason such as timeout,
then this method will return 'false', and if the Message is sent successfully, it will
return 'true'.
send in interface MessageTargetmessage - the Message to send
void setSendTimeout(long sendTimeout)
boolean subscribe(MessageTarget target)
SubscribableSourceMessageTarget as a subscriber to this source.
subscribe in interface SubscribableSourceboolean unsubscribe(MessageTarget target)
SubscribableSourceMessageTarget from the subscribers of this source.
unsubscribe in interface SubscribableSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||