⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eraseqosserver.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
/*------------------------------------------------------------------------------Name:      EraseQosServer.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.engine.qos;import org.xmlBlaster.util.Global;import org.xmlBlaster.util.XmlBlasterException;import org.xmlBlaster.util.qos.QueryQosData;/** * Handling of erase() quality of services in the server core. * <p> * This decorator hides the real qos data object and gives us a server specific view on it.  * </p> * <p> * QoS Informations sent from the client to the server via the erase() method<br /> * They are needed to control xmlBlaster * </p> * <p> * For the xml representation see QueryQosSaxFactory. * </p> * @author xmlBlaster@marcelruff.info * @see org.xmlBlaster.util.qos.QueryQosData * @see org.xmlBlaster.util.qos.QueryQosSaxFactory */public final class EraseQosServer{   private final QueryQosData queryQosData;   /**    * Constructor which accepts a raw data struct.     */   public EraseQosServer(Global glob, QueryQosData queryQosData) {      this.queryQosData = queryQosData;   }   /**    * Constructs the specialized quality of service object for a erase() call.    * @param the XML based ASCII string    */   public EraseQosServer(Global glob, String xmlQos) throws XmlBlasterException {      this.queryQosData = glob.getQueryQosFactory().readObject(xmlQos);   }   /**    * Access the internal data struct    */   public QueryQosData getData() {      return this.queryQosData;   }   public boolean getWantNotify() {      return this.queryQosData.getWantNotify();   }   /**    * @param forceDestroy    */   public void setForceDestroy(boolean forceDestroy) {      this.queryQosData.setForceDestroy(forceDestroy);   }   /**    * @return for erase behavior: destroy even if we are referenced?    */   public boolean getForceDestroy() {      return this.queryQosData.getForceDestroy();   }   public String toXml() {      return toXml((String)null);   }   public String toXml(String extraOffset) {      return this.queryQosData.toXml(extraOffset);   }}

⌨️ 快捷键说明

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