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

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

?? cmsschedulerthread.java

?? cms是開源的框架
?? JAVA
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/src/org/opencms/scheduler/CmsSchedulerThread.java,v $
 * Date   : $Date: 2006/03/27 14:52:20 $
 * Version: $Revision: 1.10 $
 *
 * This library is part of OpenCms -
 * the Open Source Content Mananagement System
 *
 * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software GmbH, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.scheduler;

import org.opencms.main.CmsLog;

import org.apache.commons.logging.Log;

/**
 * A worker thread for the OpenCms scheduler.<p>
 * 
 * @author Alexander Kandzior 
 *  
 * @version $Revision: 1.10 $ 
 * 
 * @since 6.0.0 
 */
public class CmsSchedulerThread extends Thread {

    /** The log object for this class. */
    private static final Log LOG = CmsLog.getLog(CmsSchedulerThread.class);

    /** The scheduler thread pool this thread belongs to. */
    private CmsSchedulerThreadPool m_pool;

    /** A flag that signals the thread to terminate. */
    private boolean m_run;

    /** A runnable class. */
    private Runnable m_runnable;

    /**
     * Create a scheduler thread that runs continuosly,
     * waiting for new runnables to be provided by the scheduler thread pool.<p>
     * 
     * @param pool the pool to use
     * @param threadGroup the thread group to use
     * @param threadName the name for the thread
     * @param prio the priority of the thread
     * @param isDaemon controls if this should be a deamon thread or not
     */
    CmsSchedulerThread(
        CmsSchedulerThreadPool pool,
        ThreadGroup threadGroup,
        String threadName,
        int prio,
        boolean isDaemon) {

        this(pool, threadGroup, threadName, prio, isDaemon, null);
    }

    /**
     * Create a scheduler thread that runs the specified runnable exactly once.<p>
     * 
     * @param pool the pool to use
     * @param threadGroup the thread group to use
     * @param threadName the name for the thread
     * @param prio the priority of the thread
     * @param isDaemon controls if this should be a deamon thread or not
     * @param runnable the runnable to run
     */
    CmsSchedulerThread(
        CmsSchedulerThreadPool pool,
        ThreadGroup threadGroup,
        String threadName,
        int prio,
        boolean isDaemon,
        Runnable runnable) {

        super(threadGroup, threadName);
        m_run = true;
        m_pool = pool;
        m_runnable = runnable;
        setPriority(prio);
        setDaemon(isDaemon);
        start();
    }

    /**
     * Loop, executing targets as they are received.<p>
     */
    public void run() {

        boolean runOnce = (m_runnable != null);

        while (m_run) {
            setPriority(m_pool.getThreadPriority());
            try {
                if (m_runnable == null) {
                    m_runnable = m_pool.getNextRunnable();
                }

                if (m_runnable != null) {
                    m_runnable.run();
                }
            } catch (InterruptedException e) {
                LOG.error(Messages.get().getBundle().key(Messages.LOG_THREAD_INTERRUPTED_1, getName()), e);
            } catch (Throwable t) {
                LOG.error(Messages.get().getBundle().key(Messages.LOG_THREAD_ERROR_1, getName()), t);
            } finally {
                if (runOnce) {
                    m_run = false;
                }
                m_runnable = null;
            }
        }
        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_THREAD_SHUTDOWN_1, getName()));
        }
    }

    /**
     * Signal the thread that it should terminate.<p>
     */
    void shutdown() {

        m_run = false;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一二三四区| 成人午夜看片网址| av在线播放不卡| 日本一区二区三区视频视频| 久久精品国产精品亚洲红杏| 欧美v亚洲v综合ⅴ国产v| 久久国产精品色婷婷| 石原莉奈在线亚洲三区| 欧美一区二区视频在线观看| 国产一区二区三区四区五区美女 | 国产aⅴ精品一区二区三区色成熟| 国产欧美日产一区| 中文乱码免费一区二区| 欧美自拍偷拍一区| 久久综合综合久久综合| 激情五月激情综合网| 一区二区三区产品免费精品久久75| 日韩一级免费一区| 91理论电影在线观看| 国产精品中文字幕日韩精品| 肉色丝袜一区二区| 久久99这里只有精品| 国产a级毛片一区| 在线观看一区二区视频| 精品久久久网站| 中文字幕亚洲综合久久菠萝蜜| 欧美一区二区三区的| 久久久久久**毛片大全| 欧美日韩国产a| 成人精品免费网站| 欧美三级日韩在线| 在线视频你懂得一区二区三区| 欧美一区二区三区在线视频| 久久这里只精品最新地址| 欧美成人一区二区三区片免费| 国产精品美女久久久久久久| 日韩在线一区二区三区| 成人av免费在线观看| 国产乱人伦偷精品视频免下载| 91伊人久久大香线蕉| 欧美一区国产二区| 亚洲精品福利视频网站| 亚洲自拍偷拍av| 国产一区二区在线看| 欧美日韩中文字幕一区| 国产欧美日韩综合| 午夜伦欧美伦电影理论片| 首页综合国产亚洲丝袜| 国产suv一区二区三区88区| 欧美午夜片在线看| 欧美一卡二卡三卡| 亚洲精品伦理在线| 国产91精品一区二区| 日韩欧美综合一区| 亚洲第一av色| 国内久久婷婷综合| 91精品国产福利在线观看| 亚洲老司机在线| 不卡一卡二卡三乱码免费网站| 精品国产电影一区二区| 中文字幕av在线一区二区三区| 欧美激情一区三区| 国产综合色精品一区二区三区| 欧美一区二区日韩一区二区| 亚洲国产精品影院| 在线欧美日韩精品| 亚洲激情图片一区| 色94色欧美sute亚洲线路二| 精品视频资源站| 一区二区三区久久久| 91亚洲精华国产精华精华液| 国产精品丝袜一区| 成人国产电影网| 亚洲欧洲av另类| 91麻豆视频网站| 伊人性伊人情综合网| 91高清视频在线| 亚洲国产中文字幕在线视频综合| 欧美性受xxxx| 午夜亚洲福利老司机| 欧美年轻男男videosbes| 亚洲成国产人片在线观看| 精品视频一区三区九区| 日韩激情av在线| 精品久久一区二区三区| 国产精品一级在线| 国产精品视频一区二区三区不卡| 99热这里都是精品| 亚洲综合丝袜美腿| 日韩欧美一级片| 亚洲一区二区在线播放相泽| 欧美日韩在线三区| 久草中文综合在线| 欧美日韩美少妇| 日韩激情中文字幕| 久久婷婷成人综合色| 成人av集中营| 亚洲一区二区美女| 精品国产一二三| 99久久综合精品| 水蜜桃久久夜色精品一区的特点| 欧美成人精品福利| 91伊人久久大香线蕉| 日本va欧美va欧美va精品| 日本电影亚洲天堂一区| 亚洲成人精品影院| 国产欧美视频一区二区| 欧美日韩卡一卡二| 国产裸体歌舞团一区二区| 亚洲婷婷综合久久一本伊一区| 成人动漫一区二区三区| 天堂影院一区二区| 亚洲国产成人在线| 日韩一级完整毛片| 91农村精品一区二区在线| 日韩1区2区日韩1区2区| 欧美日韩国产不卡| 国产a精品视频| 美女诱惑一区二区| 精品毛片乱码1区2区3区| 91在线云播放| 亚洲成人一区二区| 欧美国产欧美亚州国产日韩mv天天看完整| 在线观看av一区| 成人一二三区视频| 另类专区欧美蜜桃臀第一页| 亚洲自拍都市欧美小说| 国产免费成人在线视频| 91精品国产高清一区二区三区 | 国产成人亚洲综合a∨婷婷图片 | 国产三级一区二区| av激情成人网| 国产一区二区不卡| 日本亚洲电影天堂| 性感美女极品91精品| 亚洲视频在线一区观看| 久久午夜国产精品| 精品美女一区二区三区| 91精品在线免费观看| 国产在线播精品第三| 蜜臀av性久久久久av蜜臀妖精| 亚洲在线视频网站| ...av二区三区久久精品| 欧美国产日韩在线观看| 国产夜色精品一区二区av| 欧美成人精精品一区二区频| 日韩亚洲欧美在线观看| 在线播放91灌醉迷j高跟美女 | 天天综合天天做天天综合| 亚洲欧美电影一区二区| 欧美一级视频精品观看| 欧美精品v国产精品v日韩精品| 欧日韩精品视频| 欧美性色aⅴ视频一区日韩精品| 99这里都是精品| 99国产精品久久| 91久久奴性调教| 欧美性大战久久| 欧美日本韩国一区二区三区视频| 欧美日韩国产经典色站一区二区三区| 色综合久久六月婷婷中文字幕| 欧美aaa在线| 激情综合色丁香一区二区| 国精产品一区一区三区mba桃花| 久久电影网站中文字幕| 国产成人精品网址| 91毛片在线观看| 欧美日韩中文另类| 日韩精品专区在线| 国产欧美日产一区| 亚洲男女一区二区三区| 视频精品一区二区| 国产传媒一区在线| 91亚洲大成网污www| 欧美另类久久久品| 久久综合丝袜日本网| 18成人在线视频| 丝袜美腿亚洲综合| 国产一区二区导航在线播放| 色悠悠久久综合| 日韩一区二区视频在线观看| 日本一区免费视频| 亚洲成人免费看| 国产一区二区不卡在线| 91精彩视频在线| 精品粉嫩aⅴ一区二区三区四区| 国产精品福利一区| 国产日韩欧美高清在线| 亚洲男人天堂av网| 久久66热偷产精品| 一本久久综合亚洲鲁鲁五月天| 日韩一区二区视频| 国产精品成人网| 久久国产精品免费| 在线看日韩精品电影| 久久久久久久久久久久久久久99| 一区二区理论电影在线观看| 极品少妇xxxx精品少妇| 欧美日本精品一区二区三区| 中文字幕在线免费不卡|