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

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

?? fairgenericobjectpool.java

?? 爬蟲
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* FairGenericObjectPool** $Id: FairGenericObjectPool.java,v 1.2 2006/06/09 22:57:24 gojomo Exp $** Created on Apr 7, 2006** Copyright (C) 2006 Internet Archive.*/package org.apache.commons.pool.impl;import java.util.Collections;import java.util.LinkedList;import java.util.List;import java.util.NoSuchElementException;import org.apache.commons.pool.PoolableObjectFactory;import org.apache.commons.pool.impl.GenericKeyedObjectPool.ObjectTimestampPair;/** * Version of GenericObjectPool which is 'fair' with respect to the client * threads using {@link #borrowObject <i>borrowObject</i>}. Those which enter * first will receive objects from the pool first.  *  *  * @see GenericObjectPool * @author Gordon Mohr * @version $Revision: 1.2 $ $Date: 2006/06/09 22:57:24 $ */public class FairGenericObjectPool extends GenericObjectPool {    //--- constructors -----------------------------------------------    // (all copied from superclass; only last adds one additional line of    // initialization and call to superclass)        /**     * Create a new <tt>FairGenericObjectPool</tt>.     */    public FairGenericObjectPool() {        this(null,DEFAULT_MAX_ACTIVE,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_MIN_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     */    public FairGenericObjectPool(PoolableObjectFactory factory) {        this(factory,DEFAULT_MAX_ACTIVE,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_MIN_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param config a non-<tt>null</tt> {@link GenericObjectPool.Config} describing my configuration     */    public FairGenericObjectPool(PoolableObjectFactory factory, GenericObjectPool.Config config) {        this(factory,config.maxActive,config.whenExhaustedAction,config.maxWait,config.maxIdle,config.minIdle,config.testOnBorrow,config.testOnReturn,config.timeBetweenEvictionRunsMillis,config.numTestsPerEvictionRun,config.minEvictableIdleTimeMillis,config.testWhileIdle);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param maxActive the maximum number of objects that can be borrowed from me at one time (see {@link #setMaxActive})     */    public FairGenericObjectPool(PoolableObjectFactory factory, int maxActive) {        this(factory,maxActive,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_MIN_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param maxActive the maximum number of objects that can be borrowed from me at one time (see {@link #setMaxActive})     * @param whenExhaustedAction the action to take when the pool is exhausted (see {@link #getWhenExhaustedAction})     * @param maxWait the maximum amount of time to wait for an idle object when the pool is exhausted an and <i>whenExhaustedAction</i> is {@link #WHEN_EXHAUSTED_BLOCK} (otherwise ignored) (see {@link #getMaxWait})     */    public FairGenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait) {        this(factory,maxActive,whenExhaustedAction,maxWait,DEFAULT_MAX_IDLE,DEFAULT_MIN_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param maxActive the maximum number of objects that can be borrowed from me at one time (see {@link #setMaxActive})     * @param whenExhaustedAction the action to take when the pool is exhausted (see {@link #getWhenExhaustedAction})     * @param maxWait the maximum amount of time to wait for an idle object when the pool is exhausted an and <i>whenExhaustedAction</i> is {@link #WHEN_EXHAUSTED_BLOCK} (otherwise ignored) (see {@link #getMaxWait})     * @param testOnBorrow whether or not to validate objects before they are returned by the {@link #borrowObject} method (see {@link #getTestOnBorrow})     * @param testOnReturn whether or not to validate objects after they are returned to the {@link #returnObject} method (see {@link #getTestOnReturn})     */    public FairGenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, boolean testOnBorrow, boolean testOnReturn) {        this(factory,maxActive,whenExhaustedAction,maxWait,DEFAULT_MAX_IDLE,DEFAULT_MIN_IDLE,testOnBorrow,testOnReturn,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param maxActive the maximum number of objects that can be borrowed from me at one time (see {@link #setMaxActive})     * @param whenExhaustedAction the action to take when the pool is exhausted (see {@link #getWhenExhaustedAction})     * @param maxWait the maximum amount of time to wait for an idle object when the pool is exhausted an and <i>whenExhaustedAction</i> is {@link #WHEN_EXHAUSTED_BLOCK} (otherwise ignored) (see {@link #getMaxWait})     * @param maxIdle the maximum number of idle objects in my pool (see {@link #getMaxIdle})     */    public FairGenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle) {        this(factory,maxActive,whenExhaustedAction,maxWait,maxIdle,DEFAULT_MIN_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param maxActive the maximum number of objects that can be borrowed from me at one time (see {@link #setMaxActive})     * @param whenExhaustedAction the action to take when the pool is exhausted (see {@link #getWhenExhaustedAction})     * @param maxWait the maximum amount of time to wait for an idle object when the pool is exhausted an and <i>whenExhaustedAction</i> is {@link #WHEN_EXHAUSTED_BLOCK} (otherwise ignored) (see {@link #getMaxWait})     * @param maxIdle the maximum number of idle objects in my pool (see {@link #getMaxIdle})     * @param testOnBorrow whether or not to validate objects before they are returned by the {@link #borrowObject} method (see {@link #getTestOnBorrow})     * @param testOnReturn whether or not to validate objects after they are returned to the {@link #returnObject} method (see {@link #getTestOnReturn})     */    public FairGenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn) {        this(factory,maxActive,whenExhaustedAction,maxWait,maxIdle,DEFAULT_MIN_IDLE,testOnBorrow,testOnReturn,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param maxActive the maximum number of objects that can be borrowed from me at one time (see {@link #setMaxActive})     * @param whenExhaustedAction the action to take when the pool is exhausted (see {@link #setWhenExhaustedAction})     * @param maxWait the maximum amount of time to wait for an idle object when the pool is exhausted an and <i>whenExhaustedAction</i> is {@link #WHEN_EXHAUSTED_BLOCK} (otherwise ignored) (see {@link #setMaxWait})     * @param maxIdle the maximum number of idle objects in my pool (see {@link #setMaxIdle})     * @param testOnBorrow whether or not to validate objects before they are returned by the {@link #borrowObject} method (see {@link #setTestOnBorrow})     * @param testOnReturn whether or not to validate objects after they are returned to the {@link #returnObject} method (see {@link #setTestOnReturn})     * @param timeBetweenEvictionRunsMillis the amount of time (in milliseconds) to sleep between examining idle objects for eviction (see {@link #setTimeBetweenEvictionRunsMillis})     * @param numTestsPerEvictionRun the number of idle objects to examine per run within the idle object eviction thread (if any) (see {@link #setNumTestsPerEvictionRun})     * @param minEvictableIdleTimeMillis the minimum number of milliseconds an object can sit idle in the pool before it is eligable for evcition (see {@link #setMinEvictableIdleTimeMillis})     * @param testWhileIdle whether or not to validate objects in the idle object eviction thread, if any (see {@link #setTestWhileIdle})     */    public FairGenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) {        this(factory, maxActive, whenExhaustedAction, maxWait, maxIdle, DEFAULT_MIN_IDLE, testOnBorrow, testOnReturn, timeBetweenEvictionRunsMillis, numTestsPerEvictionRun, minEvictableIdleTimeMillis, testWhileIdle);    }    /**     * Create a new <tt>FairGenericObjectPool</tt> using the specified values.     * @param factory the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects     * @param maxActive the maximum number of objects that can be borrowed from me at one time (see {@link #setMaxActive})     * @param whenExhaustedAction the action to take when the pool is exhausted (see {@link #setWhenExhaustedAction})     * @param maxWait the maximum amount of time to wait for an idle object when the pool is exhausted an and <i>whenExhaustedAction</i> is {@link #WHEN_EXHAUSTED_BLOCK} (otherwise ignored) (see {@link #setMaxWait})     * @param maxIdle the maximum number of idle objects in my pool (see {@link #setMaxIdle})     * @param minIdle the minimum number of idle objects in my pool (see {@link #setMinIdle})     * @param testOnBorrow whether or not to validate objects before they are returned by the {@link #borrowObject} method (see {@link #setTestOnBorrow})     * @param testOnReturn whether or not to validate objects after they are returned to the {@link #returnObject} method (see {@link #setTestOnReturn})     * @param timeBetweenEvictionRunsMillis the amount of time (in milliseconds) to sleep between examining idle objects for eviction (see {@link #setTimeBetweenEvictionRunsMillis})     * @param numTestsPerEvictionRun the number of idle objects to examine per run within the idle object eviction thread (if any) (see {@link #setNumTestsPerEvictionRun})     * @param minEvictableIdleTimeMillis the minimum number of milliseconds an object can sit idle in the pool before it is eligable for evcition (see {@link #setMinEvictableIdleTimeMillis})     * @param testWhileIdle whether or not to validate objects in the idle object eviction thread, if any (see {@link #setTestWhileIdle})     */    public FairGenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) {        this(factory, maxActive, whenExhaustedAction, maxWait, maxIdle, minIdle, testOnBorrow, testOnReturn, timeBetweenEvictionRunsMillis, numTestsPerEvictionRun, minEvictableIdleTimeMillis, testWhileIdle, DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜乳av一区二区| 国产精品成人免费精品自在线观看| 国产一区二区美女| 奇米色一区二区三区四区| 亚洲一二三专区| 亚洲一区二区精品视频| 一区二区理论电影在线观看| 亚洲精品成人天堂一二三| 亚洲日本va午夜在线影院| 亚洲视频电影在线| 一区二区三区四区乱视频| 亚洲午夜国产一区99re久久| 日韩国产欧美在线视频| 看电视剧不卡顿的网站| 国产综合成人久久大片91| 国产成人精品免费| 91麻豆蜜桃一区二区三区| 欧亚洲嫩模精品一区三区| 欧美日本国产视频| 亚洲精品在线免费播放| 亚洲国产精品ⅴa在线观看| 国产精品久久看| 亚洲一区在线免费观看| 日韩高清不卡一区二区| 国产精品一区二区三区99| caoporen国产精品视频| 欧美日韩国产不卡| 久久久久久亚洲综合| 亚洲色图另类专区| 人人狠狠综合久久亚洲| 国产很黄免费观看久久| 91国产成人在线| 精品国产乱码久久久久久1区2区| 国产欧美1区2区3区| 亚洲中国最大av网站| 激情深爱一区二区| 色香蕉成人二区免费| 日韩无一区二区| 亚洲欧洲一区二区在线播放| 日韩福利视频网| 91色婷婷久久久久合中文| 欧美一区二区人人喊爽| 亚洲少妇最新在线视频| 麻豆国产精品一区二区三区 | 亚洲一二三四区不卡| 久久精品国产久精国产爱| 色老汉一区二区三区| 久久久综合激的五月天| 午夜一区二区三区在线观看| 国产成人一区在线| 在线综合视频播放| 亚洲欧美日韩国产中文在线| 日韩不卡一区二区| 91久久精品国产91性色tv| 国产亚洲精品bt天堂精选| 日本最新不卡在线| 色美美综合视频| 国产精品高清亚洲| 国产91在线看| 精品国精品国产| 青青草原综合久久大伊人精品| 色999日韩国产欧美一区二区| 久久久精品综合| 激情偷乱视频一区二区三区| 欧美一区二区视频免费观看| 亚洲午夜电影网| 在线视频欧美区| 亚洲美女一区二区三区| a亚洲天堂av| 国产精品国产成人国产三级| 风流少妇一区二区| 国产日韩欧美在线一区| 国产乱码精品一品二品| 久久先锋影音av鲁色资源| 极品少妇xxxx精品少妇偷拍| 日韩一区二区中文字幕| 日韩二区在线观看| 欧美大片在线观看一区二区| 免费观看久久久4p| 日韩精品一区二区在线| 国内精品视频一区二区三区八戒| 欧美一区二区三区免费| 久久精品av麻豆的观看方式| 精品少妇一区二区三区在线视频| 久久成人精品无人区| 久久综合资源网| 国产成人精品亚洲777人妖| 中文在线一区二区| 色欧美日韩亚洲| 丝袜美腿成人在线| 国产精品亲子乱子伦xxxx裸| 风间由美性色一区二区三区| 中文字幕在线不卡一区| 在线观看日韩毛片| 午夜精品久久久久影视| 精品国免费一区二区三区| 懂色av一区二区在线播放| 日韩伦理电影网| 欧美日韩国产综合草草| 美女免费视频一区| 中文字幕中文乱码欧美一区二区| 色悠久久久久综合欧美99| 日韩精品视频网| 中文字幕精品—区二区四季| 欧美色综合天天久久综合精品| 蜜臀av一区二区在线观看| 国产精品久久久久一区| 欧美丰满美乳xxx高潮www| 国产毛片精品视频| 亚洲第一会所有码转帖| 国产偷v国产偷v亚洲高清| 欧美影院精品一区| 国产成人精品亚洲777人妖 | 国产乱国产乱300精品| 亚洲美女免费在线| 精品欧美一区二区三区精品久久 | 亚洲人亚洲人成电影网站色| 欧美日韩激情一区| 99久久综合精品| 久草中文综合在线| 亚洲狠狠爱一区二区三区| 久久影院午夜片一区| 欧美在线观看视频一区二区三区| 国模娜娜一区二区三区| 亚洲高清在线视频| 国产精品传媒在线| 日韩欧美的一区二区| 欧美午夜电影一区| 99精品国产热久久91蜜凸| 国产成人精品三级麻豆| 精品在线一区二区三区| 亚洲一二三四区| 日韩美女视频一区| 中文字幕精品三区| 久久久91精品国产一区二区精品 | 欧美伦理电影网| 成人动漫精品一区二区| 精品一区二区在线免费观看| 日韩精品一二三区| 一区二区三区在线视频免费观看 | 91麻豆免费看| 91一区二区三区在线播放| 国产精品主播直播| 国内精品伊人久久久久影院对白| 免费在线观看成人| 天堂资源在线中文精品| 亚洲高清在线精品| 亚洲成人在线免费| 亚洲成人免费视| 亚洲在线视频一区| 一区二区高清在线| 亚洲综合网站在线观看| 亚洲精品成人少妇| 一二三四社区欧美黄| 亚洲欧美日韩在线| 亚洲精品视频免费看| 亚洲免费观看高清完整版在线观看 | 亚洲午夜一区二区| 亚洲妇熟xx妇色黄| 午夜精品久久久久影视| 免费观看成人鲁鲁鲁鲁鲁视频| 男女激情视频一区| 国产剧情一区二区| 成人激情黄色小说| 色综合激情五月| 欧美精品久久久久久久久老牛影院| 欧美老女人在线| 精品国产3级a| 中文字幕欧美日本乱码一线二线| 国产亚洲精久久久久久| 一区视频在线播放| 亚洲午夜在线观看视频在线| 日韩精品一区第一页| 国产一区二区三区高清播放| 成人av在线一区二区三区| 色丁香久综合在线久综合在线观看| 欧美在线观看视频在线| 日韩精品中文字幕一区| 久久久久国产精品人| 日韩毛片视频在线看| 奇米影视在线99精品| 豆国产96在线|亚洲| 欧美三级中文字幕| ww久久中文字幕| 一区二区三区在线免费观看| 亚洲成人免费观看| 国产一区二区三区不卡在线观看| 91啪在线观看| 欧美一级片在线观看| 国产精品乱人伦| 日本sm残虐另类| 91在线精品一区二区| 日韩欧美三级在线| 亚洲免费看黄网站| 国产一区二区伦理| 欧美日韩国产一区| 国产精品毛片久久久久久| 日本不卡的三区四区五区| 91网站视频在线观看| 欧美精品一区二区三区蜜桃视频|