亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? serversession.java

?? 一個java方面的消息訂閱發送的源碼
?? JAVA
字號:
/**
 * Redistribution and use of this software and associated documentation
 * ("Software"), with or without modification, are permitted provided
 * that the following conditions are met:
 *
 * 1. Redistributions of source code must retain copyright
 *    statements and notices.  Redistributions must also contain a
 *    copy of this document.
 *
 * 2. Redistributions in binary form must reproduce the
 *    above copyright notice, this list of conditions and the
 *    following disclaimer in the documentation and/or other
 *    materials provided with the distribution.
 *
 * 3. The name "Exolab" must not be used to endorse or promote
 *    products derived from this Software without prior written
 *    permission of Exoffice Technologies.  For written permission,
 *    please contact info@exolab.org.
 *
 * 4. Products derived from this Software may not be called "Exolab"
 *    nor may "Exolab" appear in their names without prior written
 *    permission of Exoffice Technologies. Exolab is a registered
 *    trademark of Exoffice Technologies.
 *
 * 5. Due credit should be given to the Exolab Project
 *    (http://www.exolab.org/).
 *
 * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
 * EXOFFICE TECHNOLOGIES OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * Copyright 2005 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 * $Id: ServerSession.java,v 1.1 2005/03/18 04:07:02 tanderson Exp $
 */
package org.exolab.jms.server;

import java.util.List;
import javax.jms.JMSException;
import javax.transaction.xa.XAException;
import javax.transaction.xa.Xid;

import org.exolab.jms.client.JmsDestination;
import org.exolab.jms.client.JmsMessageListener;
import org.exolab.jms.client.JmsQueue;
import org.exolab.jms.client.JmsTopic;
import org.exolab.jms.message.MessageImpl;


/**
 * Indicates the methods clients can call on the server-side implementation of
 * the {@link javax.jms.Session} interface
 *
 * @author <a href="mailto:tma@netspace.net.au">Tim Anderson</a>
 * @version $Revision: 1.1 $ $Date: 2005/03/18 04:07:02 $
 */
public interface ServerSession {

    /**
     * Close and release any resource allocated to this session.
     *
     * @throws JMSException for any JMS error
     */
    void close() throws JMSException;

    /**
     * Acknowledge that a message has been processed
     *
     * @param consumerId the identity of the consumer performing the ack
     * @param messageId  the message identifier
     * @throws JMSException for any error
     */
    void acknowledgeMessage(long consumerId, String messageId)
            throws JMSException;

    /**
     * Send a message
     *
     * @param message the message to send
     * @throws JMSException for any error
     */
    void send(MessageImpl message) throws JMSException;

    /**
     * Send a set of messages
     *
     * @param messages a list of <code>MessageImpl</code> instances
     * @throws JMSException for any JMS error
     */
    void send(List messages) throws JMSException;

    /**
     * Return the next available message to the specified consumer.
     * <p/>
     * The <code>wait</code> parameter indicates how many milliseconds to wait
     * for a message before returning. If <code>wait</code> is <code>0</code>
     * then do not wait. If <code>wait</code> is <code>-1</code> then wait
     * indefinitely for the next message.
     *
     * @param consumerId the consumer identifier
     * @param wait       number of milliseconds to wait
     * @return the next message or <code>null</code>
     * @throws JMSException for any JMS error
     */
    MessageImpl receive(long consumerId, long wait) throws JMSException;

    /**
     * Browse up to count messages
     *
     * @param consumerId the consumer identifier
     * @param count      the maximum number of messages to receive
     * @return a list of {@link MessageImpl} instances
     * @throws JMSException for any JMS error
     */
    List browse(long consumerId, int count) throws JMSException;

    /**
     * Create a new message consumer
     *
     * @param destination the destination to consume messages from
     * @param selector    the message selector. May be <code>null</code>
     * @param noLocal     if true, and the destination is a topic, inhibits the
     *                    delivery of messages published by its own connection.
     *                    The behavior for <code>noLocal</code> is not specified
     *                    if the destination is a queue.
     * @return the identifty of the message consumer
     * @throws JMSException for any JMS error
     */
    long createConsumer(JmsDestination destination, String selector,
                        boolean noLocal)
            throws JMSException;

    /**
     * Create a new durable consumer. Durable consumers may only consume from
     * non-temporary <code>Topic</code> destinations.
     *
     * @param topic    the non-temporary <code>Topic</code> to subscribe to
     * @param name     the name used to identify this subscription
     * @param selector only messages with properties matching the message
     *                 selector expression are delivered.  A value of null or an
     *                 empty string indicates that there is no message selector
     *                 for the message consumer.
     * @param noLocal  if set, inhibits the delivery of messages published by
     *                 its own connection
     * @return the identity of the durable consumer
     * @throws JMSException for any JMS error
     */
    long createDurableConsumer(JmsTopic topic, String name, String selector,
                                 boolean noLocal)
            throws JMSException;

    /**
     * Create a queue browser for this session. This allows clients to browse a
     * queue without removing any messages.
     *
     * @param queue    the queue to browse
     * @param selector the message selector. May be <code>null</code>
     * @return the identity of the queue browser
     * @throws JMSException for any JMS error
     */
    long createBrowser(JmsQueue queue, String selector) throws JMSException;

    /**
     * Remove a message consumer
     *
     * @param consumerId the identity of the consumer to remove
     * @throws JMSException for any JMS error
     */
    void removeConsumer(long consumerId) throws JMSException;

    /**
     * Unsubscribe a durable subscription
     *
     * @param name the name used to identify the subscription
     * @throws JMSException for any JMS error
     */
    void unsubscribe(String name) throws JMSException;

    /**
     * Start message delivery to this session
     *
     * @throws JMSException for any JMS error
     */
    void start() throws JMSException;

    /**
     * Stop message delivery to this session
     *
     * @throws JMSException for any JMS error
     */
    void stop() throws JMSException;

    /**
     * Set the listener for this session. The listener is an object that
     * implements MessageListener and is called back whenever a message for the
     * session is present
     *
     * @param listener the message listener
     */
    void setMessageListener(JmsMessageListener listener);

    /**
     * Enable or disable asynchronous message delivery for a particular
     * consumer
     *
     * @param consumerId the consumer identifier
     * @param enable     true to enable; false to disable
     * @throws JMSException for any JMS error
     */
    void enableAsynchronousDelivery(long consumerId, boolean enable)
            throws JMSException;

    /**
     * Recover the session. This means all unacknowledged messages are resent
     * with the redelivery flag set
     *
     * @throws JMSException if the session cannot be recovered
     */
    void recover() throws JMSException;

    /**
     * Commit the session which will send all the published messages and
     * acknowledge all received messages
     *
     * @throws JMSException if the session cannot be committed
     */
    void commit() throws JMSException;

    /**
     * Rollback the session, which will not acknowledge any of the sent
     * messages
     *
     * @throws JMSException if the session cannot be rolled back
     */
    void rollback() throws JMSException;

    /**
     * Start work on behalf of a transaction branch specified in xid If TMJOIN
     * is specified, the start is for joining a transaction previously seen by
     * the resource manager
     *
     * @param xid   the xa transaction identity
     * @param flags One of TMNOFLAGS, TMJOIN, or TMRESUME
     * @throws XAException if there is a problem completing the call
     */
    void start(Xid xid, int flags) throws XAException;

    /**
     * Ask the resource manager to prepare for a transaction commit of the
     * transaction specified in xid
     *
     * @param xid the xa transaction identity
     * @return XA_RDONLY or XA_OK
     * @throws XAException if there is a problem completing the call
     */
    int prepare(Xid xid) throws XAException;

    /**
     * Commits an XA transaction that is in progress.
     *
     * @param xid      the xa transaction identity
     * @param onePhase true if it is a one phase commit
     * @throws XAException if there is a problem completing the call
     */
    void commit(Xid xid, boolean onePhase) throws XAException;

    /**
     * Ends the work performed on behalf of a transaction branch. The resource
     * manager disassociates the XA resource from the transaction branch
     * specified and let the transaction be completedCommits an XA transaction
     * that is in progress.
     *
     * @param xid   the xa transaction identity
     * @param flags one of TMSUCCESS, TMFAIL, or TMSUSPEND
     * @throws XAException if there is a problem completing the call
     */
    void end(Xid xid, int flags) throws XAException;

    /**
     * Tell the resource manager to forget about a heuristically completed
     * transaction branch.
     *
     * @param xid the xa transaction identity
     * @throws XAException if there is a problem completing the call
     */
    void forget(Xid xid) throws XAException;

    /**
     * Obtain a list of prepared transaction branches from a resource manager.
     * The transaction manager calls this method during recovery to obtain the
     * list of transaction branches that are currently in prepared or
     * heuristically completed states.
     *
     * @param flag One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGS
     * @return the set of Xids to recover
     * @throws XAException - if there is a problem completing the call
     */
    Xid[] recover(int flag) throws XAException;

    /**
     * Inform the resource manager to roll back work done on behalf of a
     * transaction branch
     *
     * @param xid the xa transaction identity
     * @throws XAException if there is a problem completing the call
     */
    void rollback(Xid xid) throws XAException;

    /**
     * Return the transaction timeout for this instance of the resource
     * manager.
     *
     * @return the timeout in seconds
     * @throws XAException if there is a problem completing the call
     */
    int getTransactionTimeout() throws XAException;
    /**
     * Set the current transaction timeout value for this XAResource instance.
     *
     * @param seconds timeout in seconds
     * @return if the new transaction timeout was accepted
     * @throws XAException if there is a problem completing the call
     */
    boolean setTransactionTimeout(int seconds) throws XAException;

    /**
     * Return the identity of the associated resource manager.
     *
     * @return the identity of the resource manager
     * @throws XAException if there is a problem completing the call
     */
    String getResourceManagerId() throws XAException;

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美mv和日韩mv的网站| 一区二区三国产精华液| 亚洲色大成网站www久久九九| 亚洲va欧美va人人爽| 国产成人免费视频网站高清观看视频| 日本精品视频一区二区三区| 久久视频一区二区| 日韩av中文字幕一区二区三区| a亚洲天堂av| 国产日产欧美一区| 激情另类小说区图片区视频区| 欧美三级蜜桃2在线观看| 亚洲乱码国产乱码精品精可以看 | 免费一级片91| 欧美三级三级三级| 一区二区三区精品视频| 波多野结衣欧美| 国产午夜亚洲精品理论片色戒 | 91精品国产aⅴ一区二区| 亚洲精品午夜久久久| 成人午夜在线免费| 国产欧美一区二区精品仙草咪| 极品美女销魂一区二区三区| 日韩欧美一级在线播放| 日产欧产美韩系列久久99| 在线播放91灌醉迷j高跟美女| 亚洲成a人片综合在线| 欧美日本一区二区在线观看| 亚洲与欧洲av电影| 欧美美女一区二区三区| 日韩精品一二三四| 日韩欧美在线网站| 精品中文字幕一区二区小辣椒| 日韩欧美电影一二三| 精品一区二区三区欧美| 久久久久久久久久久久久久久99| 国产乱码一区二区三区| 国产欧美一区二区精品秋霞影院| 国产成人aaa| 亚洲日本va在线观看| 91国内精品野花午夜精品| 一区二区三区精品视频在线| 欧美日韩aaa| 美女一区二区久久| 欧美高清在线一区二区| 99在线热播精品免费| 一区二区三区四区精品在线视频| 欧美日韩精品欧美日韩精品一综合| 亚洲电影在线免费观看| 日韩欧美激情四射| 成人亚洲一区二区一| 亚洲黄色片在线观看| 91精品国产91久久久久久最新毛片| 久久99久久久久| 中文字幕一区av| 欧美日韩免费视频| 国产在线视频一区二区三区| 国产精品久久久久aaaa樱花| 欧美麻豆精品久久久久久| 国产一区二区三区在线看麻豆| 国产精品美日韩| 欧美三级蜜桃2在线观看| 国模无码大尺度一区二区三区| 国产精品久久久久久久午夜片 | 免费日本视频一区| 国产精品萝li| 欧美一区二区三区四区久久| 顶级嫩模精品视频在线看| 亚洲综合久久久久| 国产视频一区不卡| 欧美日韩国产综合草草| 东方欧美亚洲色图在线| 日本欧美一区二区在线观看| 亚洲少妇中出一区| 久久蜜臀中文字幕| 777午夜精品视频在线播放| av激情成人网| 国产在线麻豆精品观看| 亚洲国产aⅴ天堂久久| 国产精品你懂的在线欣赏| 日韩免费视频一区| 欧美三级午夜理伦三级中视频| 成人短视频下载| 国产资源精品在线观看| 日韩成人av影视| 亚洲永久精品大片| 1000部国产精品成人观看| 精品久久久久久最新网址| 欧美高清你懂得| 在线国产电影不卡| av激情综合网| www.欧美精品一二区| 国产一区二区三区在线观看免费视频 | 亚洲va欧美va人人爽| 亚洲欧洲综合另类| 亚洲欧洲成人自拍| 国产精品丝袜一区| 国产日韩欧美精品综合| 日韩欧美高清一区| 欧美一区三区四区| 欧美剧情片在线观看| 91国产视频在线观看| 色哟哟国产精品| 97精品久久久午夜一区二区三区| 国产很黄免费观看久久| 韩国三级中文字幕hd久久精品| 麻豆成人av在线| 久久机这里只有精品| 裸体健美xxxx欧美裸体表演| 日本中文字幕一区二区视频| 天堂av在线一区| 麻豆免费看一区二区三区| 偷拍一区二区三区| 日本女人一区二区三区| 免费高清在线一区| 免费av成人在线| 国产精品888| 成人高清视频免费观看| 一本一本久久a久久精品综合麻豆| 99精品偷自拍| 欧美日韩精品综合在线| 欧美精品v国产精品v日韩精品| 欧美日韩在线观看一区二区| 欧美日韩国产一级二级| 日韩一区二区三区四区| 久久看人人爽人人| 国产精品福利一区二区| 一级特黄大欧美久久久| 香蕉成人啪国产精品视频综合网| 日韩高清电影一区| 国产精品自产自拍| 色综合天天综合在线视频| 在线看一区二区| 欧美电影免费观看高清完整版在线 | 免费成人深夜小野草| 国产精品18久久久久| 一本色道久久综合狠狠躁的推荐 | 老司机午夜精品99久久| 国产精品性做久久久久久| 色哟哟欧美精品| 精品久久久久久久久久久院品网 | 亚洲欧美怡红院| 日日摸夜夜添夜夜添国产精品 | 中文av一区特黄| 亚洲午夜电影网| 国产精品综合久久| 欧美视频一区二区在线观看| 精品久久久久香蕉网| 亚洲欧美视频在线观看| 久久99国产精品麻豆| 91丨九色丨国产丨porny| 91精品国产综合久久久久久 | 国产日韩欧美一区二区三区综合 | 综合激情网...| 日本伊人午夜精品| 99天天综合性| 日韩欧美国产一区二区三区 | 高清在线不卡av| 欧美日韩成人激情| 中文av一区二区| 琪琪一区二区三区| 一本色道亚洲精品aⅴ| 久久综合久久久久88| 日韩在线观看一区二区| www.久久精品| 精品国产凹凸成av人导航| 一区二区三区美女视频| 丰满少妇久久久久久久| 日韩欧美亚洲另类制服综合在线| 亚洲免费观看在线观看| 风间由美中文字幕在线看视频国产欧美 | 亚洲成a人片在线观看中文| 国产成人精品www牛牛影视| 日韩亚洲电影在线| 亚洲成人7777| 欧美性色aⅴ视频一区日韩精品| 日本一区二区久久| 精品亚洲国产成人av制服丝袜| 欧美日韩视频不卡| 亚洲激情在线播放| 91麻豆文化传媒在线观看| 欧美激情在线一区二区三区| 国产在线精品一区在线观看麻豆| 欧美日韩亚洲不卡| 一区二区国产盗摄色噜噜| 成人av在线播放网址| 国产女人aaa级久久久级 | 国产精品色哟哟网站| 国产一区视频在线看| 精品日韩在线观看| 极品美女销魂一区二区三区 | 国产精品自拍av| 久久久激情视频| 国产宾馆实践打屁股91| 国产丝袜美腿一区二区三区| 国产精品88av| 国产精品天美传媒| 99re66热这里只有精品3直播| 中文字幕在线不卡一区二区三区| 成人一级片在线观看|