xmlBlaster 2.2.0 client API

org.xmlBlaster.util.error
Interface I_MsgErrorHandler

All Known Implementing Classes:
ClientErrorHandler

public interface I_MsgErrorHandler

You need to implement this interface to be notified on unrecoverable errors.

For example called by dispatchManager if a message is lost or the queue overflows

Author:
xmlBlaster@marcelruff.info

Method Summary
 void handleError(I_MsgErrorInfo msgErrorInfo)
          The final recovery, all informations necessary are transported in msgErrorInfo.
 java.lang.String handleErrorSync(I_MsgErrorInfo msgErrorInfo)
          The final recovery, all informations necessary are transported in msgErrorInfo.
 void shutdown()
           
 

Method Detail

handleError

void handleError(I_MsgErrorInfo msgErrorInfo)
The final recovery, all informations necessary are transported in msgErrorInfo.

This handler is called for example from the 'put' side of a queue if the queue is full or from the 'take' side from the queue e.g. if DispatchManager exhausted to reconnect.

This method never throws an exception but handles the error itself.


handleErrorSync

java.lang.String handleErrorSync(I_MsgErrorInfo msgErrorInfo)
                                 throws XmlBlasterException
The final recovery, all informations necessary are transported in msgErrorInfo.

This handler is called for example from the 'put' side of a queue if the queue is full or from the 'take' side from the queue e.g. if DispatchManager exhausted to reconnect.

This method can throw an exception, the caller usually passes this back the client code.

Returns:
null or a useful message return qos
Throws:
XmlBlasterException - To throw an XmlBlasterException makes sense if we are in sync mode and want to pass the exception back to the caller.

shutdown

void shutdown()

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.