|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OutgoingMessageEventListener
A listener for events concerning the status of outgoing messages.
Method Summary | |
---|---|
void |
messageSendFailed(OutgoingMessageEvent event)
The message identified by the event could not be sent. |
void |
messageSendSucceeded(OutgoingMessageEvent event)
The message identified by the event was successfully sent. |
Method Detail |
---|
void messageSendFailed(OutgoingMessageEvent event)
OutgoingMessageEvent.getFailure()
. Failures while sending
messages have several causes :
IOException
means that the messenger cannot
send the message and the messenger will accept no further messages
to be sent.RuntimeException
mean that the message was
not sent, but retries may or may not be possible based upon the
status returned by Messenger.isClosed()
.null
means that the message was not sent, but may
be retried. Usually the failure is due to local resource limits
being exceeded. Attempts may be made to later resend the message,
usually after waiting for congestion to clear.
void messageSendSucceeded(OutgoingMessageEvent event)
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |