i_connectionhandler.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 51 行

JAVA
51
字号
/*------------------------------------------------------------------------------Name:      I_ConnectionHandler.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.client;import org.xmlBlaster.util.Global;import org.xmlBlaster.util.XmlBlasterException;import org.xmlBlaster.util.queue.I_Queue;import org.xmlBlaster.util.dispatch.ConnectionStateEnum;import org.xmlBlaster.client.qos.ConnectQos;import org.xmlBlaster.client.qos.ConnectReturnQos;/** * Access the connection handler to access connection status information or manipulate queued messages.  * <p> * @author xmlBlaster@marcelruff.info */public interface I_ConnectionHandler{   /**    * @return The queue used to store tailback messages.     */   I_Queue getQueue();   /**    * Get the connection state, usable for nice logging like this:<br />    * con.getState().toString()    * @return "UNDEF", "ALIVE", "POLLING", "DEAD"    */   ConnectionStateEnum getState();   /**    * @return true if the connection to xmlBlaster is operational    */   boolean isAlive();   /**    * @return true if we are polling for the server    */   boolean isPolling();   /**    * @return true if we have definitely lost the connection to xmlBlaster and gave up    */   boolean isDead();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?