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

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

?? fairgenericobjectpool.java

?? 一個基于lucene&heritrix的搜索引擎
?? 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一区二区三区免费野_久草精品视频
成人sese在线| 欧美一级高清大全免费观看| av在线不卡网| 成人小视频在线观看| 国产精品一区二区你懂的| 另类小说视频一区二区| 免费在线观看一区| 久久精品免费看| 国产精选一区二区三区 | 国产一区二区三区香蕉 | 久久午夜老司机| 久久久精品一品道一区| 精品av久久707| 国产精品网站一区| 亚洲乱码国产乱码精品精98午夜| 一区二区三区精品在线观看| 亚洲综合在线免费观看| 五月天亚洲婷婷| 日韩精品一二区| 国产成人自拍网| 91小视频在线免费看| 在线影视一区二区三区| 欧美一区二区三区色| 欧美一级国产精品| 国产精品色哟哟网站| 亚洲一区中文日韩| 精品一区二区三区免费观看| 成人免费视频免费观看| 色偷偷久久一区二区三区| 欧美男人的天堂一二区| 精品久久久久久久久久久久久久久 | 成人黄色小视频在线观看| 99re视频这里只有精品| 青青草原综合久久大伊人精品优势| 六月丁香婷婷色狠狠久久| 久热成人在线视频| 久久超碰97中文字幕| 国产91精品一区二区麻豆网站| 丁香亚洲综合激情啪啪综合| 99久久久精品| 欧美日韩国产首页| 欧美成人性战久久| 国产精品乱人伦| 亚洲一区二区三区影院| 老司机精品视频一区二区三区| 日本va欧美va瓶| 亚洲成av人片一区二区三区| 亚洲第四色夜色| 国内不卡的二区三区中文字幕| 高清国产一区二区| 欧美在线观看一区二区| 日韩欧美二区三区| 国产精品国模大尺度视频| 亚洲精品高清在线| 精品一区二区三区免费毛片爱| 成av人片一区二区| 欧美一区二区三区日韩| 亚洲国产精品二十页| 亚洲电影在线免费观看| 国产精品1区2区3区在线观看| 色婷婷av一区二区三区之一色屋| 91在线看国产| 91精品国产91久久久久久最新毛片| 亚洲视频精选在线| 美腿丝袜一区二区三区| 91视频一区二区| 精品国精品自拍自在线| 一区二区国产盗摄色噜噜| 国内精品免费在线观看| 日韩欧美中文一区| 亚洲天堂成人在线观看| 亚洲欧洲精品天堂一级| 欧美videofree性高清杂交| 自拍偷在线精品自拍偷无码专区| 免费欧美在线视频| 欧美亚洲国产一区二区三区| 国产成a人无v码亚洲福利| 日韩欧美一区电影| 婷婷丁香久久五月婷婷| 91蜜桃在线免费视频| 日本一区二区视频在线观看| 日韩黄色片在线观看| 91久久精品日日躁夜夜躁欧美| 久久精品欧美日韩精品| 久久黄色级2电影| 欧美一区二区三区免费| 欧美老女人在线| 中文字幕的久久| 中文字幕免费观看一区| 久久国产尿小便嘘嘘尿| 欧美一级国产精品| 日韩不卡免费视频| 欧美另类一区二区三区| 亚洲国产精品精华液网站| 91片黄在线观看| 自拍偷在线精品自拍偷无码专区| 丰满岳乱妇一区二区三区| 日韩免费看的电影| 国产成人av福利| 国产欧美一区二区在线观看| 国产麻豆视频一区二区| 国产精品伦理一区二区| 99久久精品国产一区| 欧美高清在线精品一区| 成人av资源网站| 亚洲欧洲日韩一区二区三区| 99久免费精品视频在线观看| 国产精品理论在线观看| 91在线国内视频| 亚洲国产视频一区| 91电影在线观看| 午夜电影网亚洲视频| 欧美日韩在线观看一区二区 | 亚洲无线码一区二区三区| 欧美日韩aaa| 国内精品在线播放| 国产精品精品国产色婷婷| 色综合天天综合色综合av| 亚洲影视资源网| 精品国产免费人成电影在线观看四季| 国产一区二区三区国产| 成人欧美一区二区三区视频网页| 色噜噜狠狠色综合中国| 日本亚洲视频在线| 日韩一区二区免费在线观看| 成人黄色电影在线| 午夜精品免费在线观看| 久久久久综合网| 日本道精品一区二区三区| 蜜桃视频免费观看一区| 国产精品二三区| 日韩欧美123| 91亚洲精品久久久蜜桃网站| 日欧美一区二区| 国产精品美女久久久久久久网站| 欧美日韩国产美女| 亚洲一区二区三区在线播放| 精品国产免费一区二区三区香蕉| 99久久伊人久久99| 麻豆成人久久精品二区三区红| 国产精品久久久久一区二区三区 | 欧美视频一区二区在线观看| 国产精品影视在线观看| 一区二区三区**美女毛片| 久久久91精品国产一区二区精品| 91麻豆6部合集magnet| 精品在线免费观看| 午夜精品久久久久久不卡8050| 久久亚洲捆绑美女| 欧美一区中文字幕| 欧美午夜精品一区二区蜜桃| 成人一级视频在线观看| 精品一区二区综合| 亚洲人妖av一区二区| 日韩一区二区在线看| 蜜桃久久久久久| 2021国产精品久久精品| 91小视频在线| 亚洲人一二三区| 日本一区二区三区久久久久久久久不| 欧美色欧美亚洲另类二区| 成人av在线资源网| 国产乱码字幕精品高清av| 日本欧美一区二区| 一区二区三区日韩精品视频| 国产精品久久国产精麻豆99网站| 精品国产乱码久久久久久牛牛| 欧美日韩一区三区| 欧美视频在线一区| 在线观看www91| 91麻豆.com| 91搞黄在线观看| 日本精品免费观看高清观看| 99久久精品国产导航| 成人激情文学综合网| 国产成人在线影院| 午夜免费久久看| 亚洲另类春色校园小说| 久久免费看少妇高潮| 综合激情成人伊人| 午夜欧美大尺度福利影院在线看| 在线观看中文字幕不卡| 在线观看免费亚洲| 在线视频综合导航| 欧美日韩国产精品成人| 5月丁香婷婷综合| 欧美三级视频在线观看| 欧美蜜桃一区二区三区| 日韩色视频在线观看| 欧美精品一区二区三区一线天视频| 制服丝袜在线91| 久久久蜜臀国产一区二区| 国产精品乱子久久久久| 一区二区三区在线视频观看58| 亚洲成人黄色影院| 紧缚奴在线一区二区三区| 国产高清精品久久久久| 91年精品国产| 欧美日韩免费高清一区色橹橹| 精品视频资源站|