|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageTarget
Interface for any target to which Messages can be sent.
| Method Summary | |
|---|---|
boolean |
send(Message<?> message)
Send a Message to this target. |
| Method Detail |
|---|
boolean send(Message<?> message)
throws MessageRejectedException,
MessageDeliveryException
Message 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'.
message - the Message to send
MessageRejectedException - if this particular Message is not accepted by the target
(e.g. after consulting a MessageSelector)
MessageDeliveryException - if this target is unable to send the Message due
to a transport error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||