xmlBlaster 2.2.0 client API

org.xmlBlaster.client
Class ClientErrorHandler

java.lang.Object
  extended by org.xmlBlaster.client.ClientErrorHandler
All Implemented Interfaces:
I_MsgErrorHandler

public final class ClientErrorHandler
extends java.lang.Object
implements I_MsgErrorHandler

The default error recovery implementation for messages which are lost in time and universe.

Author:
xmlBlaster@marcelruff.info, michele@laghi.eu

Constructor Summary
ClientErrorHandler(Global glob, I_XmlBlasterAccess xmlBlasterAccess)
           
 
Method Summary
 void handleError(I_MsgErrorInfo msgErrorInfo)
          Handle errors in async mode, we have nobody we can throw an exception to so we handle everything here.
 java.lang.String handleErrorSync(I_MsgErrorInfo msgErrorInfo)
          The final recovery, all informations necessary are transported in msgErrorInfo.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientErrorHandler

public ClientErrorHandler(Global glob,
                          I_XmlBlasterAccess xmlBlasterAccess)
Method Detail

handleError

public void handleError(I_MsgErrorInfo msgErrorInfo)
Handle errors in async mode, we have nobody we can throw an exception to so we handle everything here.

Specified by:
handleError in interface I_MsgErrorHandler

handleErrorSync

public java.lang.String handleErrorSync(I_MsgErrorInfo msgErrorInfo)
                                 throws XmlBlasterException
Description copied from interface: I_MsgErrorHandler
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.

Specified by:
handleErrorSync in interface I_MsgErrorHandler
Returns:
null or a useful message return qos
Throws:
XmlBlasterException - is thrown if we are in sync mode and we have no COMMUNICATION problem, the client shall handle it himself

shutdown

public void shutdown()
Specified by:
shutdown in interface I_MsgErrorHandler

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.