i_msgerrorhandler.java
来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 49 行
JAVA
49 行
/*------------------------------------------------------------------------------Name: I_MsgErrorHandler.javaProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.util.error;import org.xmlBlaster.util.XmlBlasterException;/** * You need to implement this interface to be notified on unrecoverable errors. * <p> * For example called by dispatchManager if a message is lost or the queue overflows * * @author xmlBlaster@marcelruff.info */public interface I_MsgErrorHandler{ /** * The final recovery, all informations necessary are transported in msgErrorInfo. * <p> * 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. * </p> * <p> * This method never throws an exception but handles the error itself. * </p> */ public void handleError(I_MsgErrorInfo msgErrorInfo); /** * The final recovery, all informations necessary are transported in msgErrorInfo. * <p> * 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. * </p> * <p> * This method can throw an exception, the caller usually passes this back * the client code. * </p> * @exception XmlBlasterException To throw an XmlBlasterException makes sense * if we are in sync mode and want to pass the exception back to the caller. */ public void handleErrorSync(I_MsgErrorInfo msgErrorInfo) throws XmlBlasterException; public void shutdown();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?