xbconnectionconsumer.java
来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 44 行
JAVA
44 行
/*------------------------------------------------------------------------------Name: XBConnectionConsumer.javaProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.jms;import javax.jms.ConnectionConsumer;import javax.jms.JMSException;import javax.jms.ServerSessionPool;/** * XBConnectionConsumer * * @author <a href="mailto:michele@laghi.eu">Michele Laghi</a> * */public class XBConnectionConsumer implements ConnectionConsumer { private boolean closed; private XBServerSessionPool serverSessionPool; public XBConnectionConsumer(XBConnection connection) { this.serverSessionPool = new XBServerSessionPool(connection); } /** * @see javax.jms.ConnectionConsumer#close() */ public synchronized void close() throws JMSException { this.closed = true; } /** * @see javax.jms.ConnectionConsumer#getServerSessionPool() */ public ServerSessionPool getServerSessionPool() throws JMSException { if (this.closed) throw new IllegalStateException("Can not create a server session pool since this connection consumer has been closed"); return this.serverSessionPool; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?