xmlBlaster 1.6.2 API

org.xmlBlaster.util.error
Interface I_MsgErrorHandler

All Known Implementing Classes:
ClientErrorHandler, MsgErrorHandler

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.
 void handleErrorSync(I_MsgErrorInfo msgErrorInfo)
          The final recovery, all informations necessary are transported in msgErrorInfo.
 void shutdown()
           
 

Method Detail

handleError

public 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

public void 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.

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

public void shutdown()

xmlBlaster 1.6.2 API

Copyright © 1999-2007 The xmlBlaster.org contributers.