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

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

?? basetransactionlogentry.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 2002-2003 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 *
 * $Id: BaseTransactionLogEntry.java,v 1.1 2004/11/26 01:51:01 tanderson Exp $
 *
 * Date			Author  Changes
 * 20/11/2001   jima    Created
 */
package org.exolab.jms.tranlog;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;


/**
 * This is the base entry that is streamed into the transaction log file.
 * All other transaction log entry classes must extend this class.
 * <p>
 * Each entry has the associated XID and the created time stamp, along with
 * the identity of the resource that created the entry
 */
public abstract class BaseTransactionLogEntry implements Externalizable {

    /**
     * This is the unique id used to identify the version of the class
     * for the purpose of Serialization
     */
    static final long serialVersionUID = 2;

    /**
     * This is the transaction identity that this entry belongs too
     */
    private ExternalXid _externalXid = null;

    /**
     * This is the resource identity that this entry belongs too
     */
    private String _resourceId;

    /**
     * This is a time stamp when the entry was created
     */
    private long _created = -1;

    /**
     * This is the time that the transaction expires in ms. It is initialized
     * to zero, which means that it never expired
     */
    private long _expiryTime = 0;


    /**
     * Default constructor for serialization
     */
    BaseTransactionLogEntry() {
    }

    /**
     * Instantiate an instance of  this class with a transaction identifier
     * resource identifier and created date
     *
     * @param txid - the transaction identifier
     * @param rid - the resource identifier
     * @param created - timestamp for this entry
     */
    BaseTransactionLogEntry(ExternalXid txid, String rid, long created) {
        _externalXid = txid;
        _resourceId = rid;
        _created = created;
    }

    /**
     * Create a new instance populating it with the state of the specified
     * object
     *
     * @param copy - object to copy
     */
    BaseTransactionLogEntry(BaseTransactionLogEntry copy) {
        _externalXid = new ExternalXid(copy._externalXid);
        _resourceId = copy._resourceId;
        _created = copy._created;
        _expiryTime = copy._expiryTime;
    }

    /**
     * Set the transaction identifier
     *
     * @param txid - the transaction identifier
     */
    public void setExternalXid(ExternalXid txid) {
        _externalXid = txid;
    }

    /**
     * Get the transaction identifier
     *
     * @return ExternalXid
     */
    public ExternalXid getExternalXid() {
        return _externalXid;
    }

    /**
     * Set the resource identity for the entry
     *
     * @param rid - the resource identity
     */
    public void setResourceId(String rid) {
        _resourceId = rid;
    }

    /**
     * Get the resource identifier
     *
     * @return the resource identifier
     */
    public String getResourceId() {
        return _resourceId;
    }

    /**
     * Set the time in ms that this record was created
     *
     * @param time - time in ms
     */
    public void setCreated(long time) {
        _created = time;
    }

    /**
     * Set the created time of this entry to now
     */
    public void setCreated() {
        _created = System.currentTimeMillis();
    }

    /**
     * Return the time that this entry was created
     *
     * @return long
     */
    public long getCreated() {
        return _created;
    }


    /**
     * Set the expiry time for this transaction, which is an absolute time in
     * milliseconds.
     *
     * @param long - absolute expiry time
     */
    public void setExpiryTime(long time) {
        _expiryTime = time;
    }

    /**
     * Retrieve the expiry time of this transaction
     *
     * @return long
     */
    public long getExpiryTime() {
        return _expiryTime;
    }

    /**
     * Check whether the trnasaction has expired
     *
     * @return boolean - true if it has expired; false otherwise
     */
    public boolean transactionExpired() {
        return System.currentTimeMillis() > _expiryTime;
    }

    // implementation of Externalizable.writeExternal
    public void writeExternal(ObjectOutput stream)
        throws IOException {
        if (isValid()) {
            stream.writeLong(serialVersionUID);
            stream.writeObject(_externalXid);
            stream.writeUTF(_resourceId);
            stream.writeLong(_created);
        } else {
            throw new IOException("writeExternal : entry has invalid state");
        }
    }

    // implementation of Externalizable.writeExternal
    public void readExternal(ObjectInput stream)
        throws IOException, ClassNotFoundException {
        long version = stream.readLong();
        if (version == serialVersionUID) {
            _externalXid = (ExternalXid) stream.readObject();
            _resourceId = stream.readUTF();
            _created = stream.readLong();
            if (!isValid()) {
                throw new IOException("readExternal : entry has invalid state");
            }
        } else {
            throw new IOException("No support for BaseTransactionLogEntry " +
                "with version " + version);
        }
    }

    /**
     * Verify that this record has a valid state, which is denoted by
     * _externalXid , resourceId and _created being not equal to -1.
     *
     * @return boolean - true if the entry is valid
     */
    boolean isValid() {
        return ((_externalXid != null) &&
            (_resourceId != null) &&
            (_created != -1));
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品水嫩水嫩| 色94色欧美sute亚洲线路二| 欧美国产在线观看| 欧美大片免费久久精品三p| 99久久99久久综合| 高清在线观看日韩| 国产一区欧美日韩| 男男gaygay亚洲| 亚洲日本在线看| 国产精品高潮呻吟| 中文字幕 久热精品 视频在线| 日韩欧美资源站| 91精品福利在线一区二区三区 | 国产精品123| 麻豆国产精品官网| 日本午夜一区二区| 日韩电影免费一区| 日本不卡高清视频| 日韩精品欧美精品| 亚洲一区二区四区蜜桃| 国产精品毛片大码女人| 国产午夜精品久久久久久久 | 亚洲一区二区三区四区五区中文| 欧美—级在线免费片| 久久久久综合网| 久久久91精品国产一区二区三区| 欧美成人video| 日韩欧美国产麻豆| 日韩欧美久久一区| 精品粉嫩aⅴ一区二区三区四区| 91 com成人网| 国产婷婷精品av在线| 国产精品视频一二三| 亚洲欧洲日韩女同| 一区二区三区四区在线播放| 亚洲成人免费视| 免费人成在线不卡| 久草中文综合在线| 懂色av一区二区三区免费观看| 国产精品18久久久| 在线亚洲欧美专区二区| 欧美日韩免费高清一区色橹橹| 欧美高清视频www夜色资源网| 欧美成人一区二区三区片免费| 中文字幕av资源一区| 一区二区三区视频在线看| 日韩av高清在线观看| 国产激情一区二区三区桃花岛亚洲| 成人18视频在线播放| 在线电影院国产精品| 国产校园另类小说区| 亚洲少妇最新在线视频| 日韩黄色一级片| 成人国产精品免费观看动漫| 欧美在线免费观看视频| 久久综合狠狠综合久久激情| 一区二区三区四区乱视频| 免费在线观看一区二区三区| 成人深夜福利app| 4438x亚洲最大成人网| 亚洲国产精品精华液2区45| 亚洲一区在线看| 成人性生交大片免费看视频在线 | 中文字幕精品一区二区三区精品 | 欧美性大战久久| 欧美高清一级片在线观看| 亚洲精品久久7777| 国产精品一二一区| 91精品国产免费久久综合| 国产精品短视频| 国产精品白丝jk白祙喷水网站| 成人激情视频网站| 欧美精品一区二| 蜜桃视频免费观看一区| 欧美日韩一区二区三区在线| 国产精品理论片在线观看| 韩国女主播一区二区三区| 欧美网站一区二区| 亚洲精品综合在线| 99re视频这里只有精品| 国产欧美一区二区精品性| 蜜臀av性久久久久蜜臀aⅴ四虎| 91精品91久久久中77777| 国产精品久99| 国产69精品久久久久777| 精品久久久久久久久久久久久久久久久| 亚洲第一av色| 欧美日韩你懂得| 综合激情网...| 99久久国产综合色|国产精品| 久久久久久久久久久99999| 精品中文av资源站在线观看| 日韩欧美高清一区| 精品亚洲免费视频| 91精品婷婷国产综合久久| 婷婷成人激情在线网| 91.成人天堂一区| 亚洲乱码精品一二三四区日韩在线| 成人精品高清在线| 国产精品免费视频网站| 99久久久久久99| 26uuu精品一区二区三区四区在线| 亚洲愉拍自拍另类高清精品| 在线观看区一区二| 日韩电影在线观看一区| 日韩精品一区二区三区三区免费| 国产一区在线观看麻豆| 国产亚洲美州欧州综合国| 成人爽a毛片一区二区免费| 亚洲精品写真福利| 欧美日本一区二区三区四区| 日韩主播视频在线| 91超碰这里只有精品国产| 免费观看久久久4p| 中文字幕av资源一区| 欧洲色大大久久| 久久精品国产**网站演员| 国产亲近乱来精品视频| 波多野结衣一区二区三区 | 91在线porny国产在线看| 亚洲欧美另类小说| 日韩亚洲电影在线| 久久99精品久久只有精品| 中文字幕av不卡| 欧美另类高清zo欧美| 国产精品亚洲人在线观看| 精品少妇一区二区三区| 成人亚洲一区二区一| 精久久久久久久久久久| 午夜国产精品一区| 亚洲人成在线播放网站岛国| 久久久亚洲高清| 精品国精品自拍自在线| 51精品视频一区二区三区| 色噜噜狠狠成人中文综合| 国产a级毛片一区| 国产自产高清不卡| 日本特黄久久久高潮| 亚洲成人免费视频| 亚洲国产视频直播| 亚洲午夜在线观看视频在线| 亚洲免费在线播放| 中文字幕视频一区| 中文字幕中文字幕一区| 欧美国产激情一区二区三区蜜月| 精品国产3级a| 精品国产乱子伦一区| 精品国产麻豆免费人成网站| 日韩欧美激情四射| 精品国产乱码久久久久久老虎 | 在线视频欧美精品| 色欧美88888久久久久久影院| 成人a免费在线看| 成人app下载| 色妞www精品视频| 91成人网在线| 日韩一区二区三免费高清| 日韩午夜三级在线| 久久亚洲综合av| 中文字幕中文在线不卡住| 亚洲卡通动漫在线| 日韩激情中文字幕| 激情丁香综合五月| www.久久精品| 欧美亚洲综合色| 日韩三级视频在线看| 久久久久久久久一| 亚洲欧美福利一区二区| 洋洋av久久久久久久一区| 五月婷婷久久丁香| 捆绑紧缚一区二区三区视频| 国产精品一区二区久久不卡| av一区二区三区黑人| 91成人在线观看喷潮| 欧美大片免费久久精品三p| 国产精品成人午夜| 偷拍亚洲欧洲综合| 国产一区二区调教| 99久久精品免费看国产| 欧美精品在线一区二区| 久久亚洲精品小早川怜子| 国产精品短视频| 捆绑变态av一区二区三区| 99精品黄色片免费大全| 91精品国产入口| 亚洲色图欧美在线| 黑人精品欧美一区二区蜜桃| 99久免费精品视频在线观看| 欧美日韩一卡二卡| 中文字幕第一区二区| 奇米一区二区三区av| 国产69精品久久777的优势| 欧美精品久久久久久久多人混战| 久久免费看少妇高潮| 亚洲成人www| 成人一级黄色片| 精品欧美乱码久久久久久1区2区| 一区二区三区四区乱视频| 国产成人自拍网| 欧美一区二区女人|