net.jxta.impl.resolver
Class ResolverServiceImpl.FailureListener
java.lang.Object
net.jxta.impl.resolver.ResolverServiceImpl.FailureListener
- All Implemented Interfaces:
- EventListener, OutgoingMessageEventListener
- Enclosing class:
- ResolverServiceImpl
class ResolverServiceImpl.FailureListener
- extends Object
- implements OutgoingMessageEventListener
Listener to find bad destinations and clean srdi tables for them.
Field Summary |
(package private) ID |
dest
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dest
final ID dest
ResolverServiceImpl.FailureListener
ResolverServiceImpl.FailureListener(ID dest)
messageSendFailed
public void messageSendFailed(OutgoingMessageEvent event)
- The message identified by the event could not be sent.
The cause of the failure, if any, is available from
OutgoingMessageEvent.getFailure()
. Failures while sending
messages have several causes :
- An
IOException
means that the messenger cannot
send the message and the messenger will accept no further messages
to be sent.
- A
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.
- Specified by:
messageSendFailed
in interface OutgoingMessageEventListener
- Parameters:
event
- the event
messageSendSucceeded
public void messageSendSucceeded(OutgoingMessageEvent event)
- The message identified by the event was successfully sent. Successfully
sending a message is not a guarantee that it will be successfully
received by the destination.
- Specified by:
messageSendSucceeded
in interface OutgoingMessageEventListener
- Parameters:
event
- the event