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

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

?? genericobjectpool.java

?? 一個基于lucene&heritrix的搜索引擎
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
    /**     * Create a new <tt>GenericObjectPool</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 GenericObjectPool(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>GenericObjectPool</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 GenericObjectPool(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>GenericObjectPool</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 GenericObjectPool(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>GenericObjectPool</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 GenericObjectPool(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);    }    /**     * Create a new <tt>GenericObjectPool</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})     * @param softMinEvictableIdleTimeMillis the minimum number of milliseconds an object can sit idle in the pool before it is eligable for evcition with the extra condition that at least "minIdle" amount of object remain in the pool. (see {@link #setSoftMinEvictableIdleTimeMillis})     */    public GenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle, long softMinEvictableIdleTimeMillis) {        _factory = factory;        _maxActive = maxActive;        switch(whenExhaustedAction) {            case WHEN_EXHAUSTED_BLOCK:            case WHEN_EXHAUSTED_FAIL:            case WHEN_EXHAUSTED_GROW:                _whenExhaustedAction = whenExhaustedAction;                break;            default:                throw new IllegalArgumentException("whenExhaustedAction " + whenExhaustedAction + " not recognized.");        }        _maxWait = maxWait;        _maxIdle = maxIdle;        _minIdle = minIdle;        _testOnBorrow = testOnBorrow;        _testOnReturn = testOnReturn;        _timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;        _numTestsPerEvictionRun = numTestsPerEvictionRun;        _minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;        _softMinEvictableIdleTimeMillis = softMinEvictableIdleTimeMillis;        _testWhileIdle = testWhileIdle;        _pool = new LinkedList();        startEvictor(_timeBetweenEvictionRunsMillis);    }    //--- public methods ---------------------------------------------    //--- configuration methods --------------------------------------    /**     * Returns the cap on the total number of active instances from my pool.     * @return the cap on the total number of active instances from my pool.     * @see #setMaxActive     */    public synchronized int getMaxActive() {        return _maxActive;    }    /**     * Sets the cap on the total number of active instances from my pool.     * @param maxActive The cap on the total number of active instances from my pool.     *                  Use a negative value for an infinite number of instances.     * @see #getMaxActive     */    public synchronized void setMaxActive(int maxActive) {        _maxActive = maxActive;        notifyAll();    }    /**     * Returns the action to take when the {@link #borrowObject} method     * is invoked when the pool is exhausted (the maximum number     * of "active" objects has been reached).     *     * @return one of {@link #WHEN_EXHAUSTED_BLOCK}, {@link #WHEN_EXHAUSTED_FAIL} or {@link #WHEN_EXHAUSTED_GROW}     * @see #setWhenExhaustedAction     */    public synchronized byte getWhenExhaustedAction() {        return _whenExhaustedAction;    }    /**     * Sets the action to take when the {@link #borrowObject} method     * is invoked when the pool is exhausted (the maximum number     * of "active" objects has been reached).     *     * @param whenExhaustedAction the action code, which must be one of     *        {@link #WHEN_EXHAUSTED_BLOCK}, {@link #WHEN_EXHAUSTED_FAIL},     *        or {@link #WHEN_EXHAUSTED_GROW}     * @see #getWhenExhaustedAction     */    public synchronized void setWhenExhaustedAction(byte whenExhaustedAction) {        switch(whenExhaustedAction) {            case WHEN_EXHAUSTED_BLOCK:            case WHEN_EXHAUSTED_FAIL:            case WHEN_EXHAUSTED_GROW:                _whenExhaustedAction = whenExhaustedAction;                notifyAll();                break;            default:                throw new IllegalArgumentException("whenExhaustedAction " + whenExhaustedAction + " not recognized.");        }    }    /**     * Returns the maximum amount of time (in milliseconds) the     * {@link #borrowObject} method should block before throwing     * an exception when the pool is exhausted and the     * {@link #setWhenExhaustedAction "when exhausted" action} is     * {@link #WHEN_EXHAUSTED_BLOCK}.     *     * When less than 0, the {@link #borrowObject} method     * may block indefinitely.     *     * @see #setMaxWait     * @see #setWhenExhaustedAction     * @see #WHEN_EXHAUSTED_BLOCK     */    public synchronized long getMaxWait() {        return _maxWait;    }    /**     * Sets the maximum amount of time (in milliseconds) the     * {@link #borrowObject} method should block before throwing     * an exception when the pool is exhausted and the     * {@link #setWhenExhaustedAction "when exhausted" action} is     * {@link #WHEN_EXHAUSTED_BLOCK}.     *     * When less than 0, the {@link #borrowObject} method     * may block indefinitely.     *     * @see #getMaxWait     * @see #setWhenExhaustedAction     * @see #WHEN_EXHAUSTED_BLOCK     */    public synchronized void setMaxWait(long maxWait) {        _maxWait = maxWait;        notifyAll();    }    /**     * Returns the cap on the number of "idle" instances in the pool.     * @return the cap on the number of "idle" instances in the pool.     * @see #setMaxIdle     */    public synchronized int getMaxIdle() {        return _maxIdle;    }    /**     * Sets the cap on the number of "idle" instances in the pool.     * @param maxIdle The cap on the number of "idle" instances in the pool.     *                Use a negative value to indicate an unlimited number     *                of idle instances.     * @see #getMaxIdle     */    public synchronized void setMaxIdle(int maxIdle) {        _maxIdle = maxIdle;        notifyAll();    }    /**     * Sets the minimum number of objects allowed in the pool     * before the evictor thread (if active) spawns new objects.     * (Note no objects are created when: numActive + numIdle >= maxActive)     *     * @param minIdle The minimum number of objects.     * @see #getMinIdle     */    public synchronized void setMinIdle(int minIdle) {        _minIdle = minIdle;        notifyAll();    }    /**     * Returns the minimum number of objects allowed in the pool     * before the evictor thread (if active) spawns new objects.     * (Note no objects are created when: numActive + numIdle >= maxActive)     *     * @return The minimum number of objects.     * @see #setMinIdle     */    public synchronized int getMinIdle() {        return _minIdle;    }    /**     * When <tt>true</tt>, objects will be     * {@link PoolableObjectFactory#validateObject validated}     * before being returned by the {@link #borrowObject}     * method.  If the object fails to validate,     * it will be dropped from the pool, and we will attempt     * to borrow another.     *     * @see #setTestOnBorrow     */    public synchronized boolean getTestOnBorrow() {        return _testOnBorrow;    }    /**     * When <tt>true</tt>, objects will be     * {@link PoolableObjectFactory#validateObject validated}     * before being returned by the {@link #borrowObject}     * method.  If the object fails to validate,     * it will be dropped from the pool, and we will attempt     * to borrow another.     *     * @see #getTestOnBorrow     */    public synchronized void setTestOnBorrow(boolean testOnBorrow) {        _testOnBorrow = testOnBorrow;    }    /**     * When <tt>true</tt>, objects will be     * {@link PoolableObjectFactory#validateObject validated}     * before being returned to the pool within the     * {@link #returnObject}.     *     * @see #setTestOnReturn     */    public synchronized boolean getTestOnReturn() {        return _testOnReturn;    }    /**     * When <tt>true</tt>, objects will be     * {@link PoolableObjectFactory#validateObject validated}     * before being returned to the pool within the     * {@link #returnObject}.     *     * @see #getTestOnReturn     */    public synchronized void setTestOnReturn(boolean testOnReturn) {        _testOnReturn = testOnReturn;    }    /**     * Returns the number of milliseconds to sleep between runs of the     * idle object evictor thread.     * When non-positive, no idle object evictor thread will be     * run.     *     * @see #setTimeBetweenEvictionRunsMillis     */    public synchronized long getTimeBetweenEvictionRunsMillis() {        return _timeBetweenEvictionRunsMillis;    }    /**     * Sets the number of milliseconds to sleep between runs of the     * idle object evictor thread.     * When non-positive, no idle object evictor thread will be     * run.     *     * @see #getTimeBetweenEvictionRunsMillis     */    public synchronized void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) {        _timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;        startEvictor(_timeBetweenEvictionRunsMillis);    }    /**     * Returns the max number of objects to examine during each run of the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本丝袜连裤袜办公室| 亚洲女女做受ⅹxx高潮| 综合在线观看色| 久久久www成人免费毛片麻豆| 麻豆精品一区二区| 欧美一二区视频| 精彩视频一区二区三区| 国产欧美日韩不卡免费| 成人国产在线观看| 亚洲精品日韩综合观看成人91| 精品国产一区二区三区久久影院| 一区二区成人在线| 欧美电视剧在线观看完整版| 国产99久久久精品| 亚洲成人av一区二区三区| 日韩精品专区在线影院观看| 欧美美女bb生活片| 亚洲在线成人精品| 欧美精品久久99| 国产成人一区在线| 自拍偷拍国产亚洲| 91精品国产综合久久福利软件| 91精品国产综合久久精品图片| 色播五月激情综合网| 肉色丝袜一区二区| 国产99久久久精品| 日韩电影在线一区| 亚洲精品国产精华液| 国产视频不卡一区| 91精品午夜视频| 欧美在线啊v一区| 7777精品伊人久久久大香线蕉完整版| 91网站最新地址| 99精品在线免费| 成人免费视频一区二区| 91麻豆成人久久精品二区三区| 久99久精品视频免费观看| 亚洲成人综合在线| 天天爽夜夜爽夜夜爽精品视频| 中文一区在线播放| 久久综合久久鬼色中文字| 91麻豆精品国产91久久久更新时间| 色综合久久久久久久久久久| 国产盗摄一区二区| 国产精品456| 国产精品99精品久久免费| 乱一区二区av| 国产精品一二三四区| eeuss鲁一区二区三区| 欧美综合一区二区三区| 欧美日韩精品欧美日韩精品一综合| 日韩高清国产一区在线| 视频一区二区三区中文字幕| 亚洲一级在线观看| 亚洲精品ww久久久久久p站| 亚洲一区二区三区四区的| 亚洲丝袜美腿综合| 亚洲欧美激情小说另类| √…a在线天堂一区| 亚洲成av人片在线| 亚洲午夜影视影院在线观看| 日韩欧美一区二区视频| 欧美日韩一级片网站| 日韩一区二区在线免费观看| 精品卡一卡二卡三卡四在线| 国产精品久久久久久亚洲伦| 有码一区二区三区| 日韩影院精彩在线| 国产成人精品三级| 欧美性高清videossexo| 在线不卡的av| av电影在线观看一区| 欧美日韩在线一区二区| 欧美一区二区三区啪啪| 国产精品久久久久久久蜜臀| 日韩精品亚洲一区二区三区免费| 国产一区 二区| 91麻豆精品国产91久久久使用方法 | 亚洲午夜免费电影| 强制捆绑调教一区二区| 中文字幕第一区二区| 亚洲国产精品欧美一二99| 奇米一区二区三区av| av亚洲精华国产精华精| 91精品一区二区三区久久久久久 | 精品国产91九色蝌蚪| 国产精品国产馆在线真实露脸 | 国产精品家庭影院| 国产一二三精品| 色94色欧美sute亚洲线路一ni| 亚洲精品在线观看视频| 一区二区三区免费观看| 免费在线观看成人| 99久久久免费精品国产一区二区| 欧美视频一区二区三区四区| 国产精品久久久久影视| 人人爽香蕉精品| 色老汉av一区二区三区| 欧美激情在线看| 国产亚洲成aⅴ人片在线观看| 日韩av中文字幕一区二区三区| 91在线porny国产在线看| 精品久久久久久久一区二区蜜臀| 亚洲成人午夜影院| 中文字幕亚洲一区二区av在线| 国产麻豆精品视频| 日韩一区二区精品葵司在线 | 成人免费观看男女羞羞视频| 日韩欧美中文字幕制服| 亚洲国产一区二区视频| 在线观看亚洲专区| 自拍偷拍国产亚洲| 99久久99久久精品免费观看| 国产精品看片你懂得| 成人午夜私人影院| 精品国产乱码久久久久久1区2区 | 久国产精品韩国三级视频| 欧美精品一卡二卡| 精品国产一区二区三区忘忧草 | 日本欧美一区二区| 在线观看亚洲精品视频| 久久精品视频在线免费观看| 国产精品综合二区| eeuss影院一区二区三区| 欧美国产一区在线| caoporen国产精品视频| 玉米视频成人免费看| 欧美性猛交xxxx乱大交退制版| 亚洲国产精品久久人人爱| 欧美日韩国产高清一区| 亚洲国产另类av| 日韩欧美一区二区三区在线| 极品少妇一区二区三区精品视频| 久久免费看少妇高潮| 国产成人午夜视频| 国产欧美精品一区aⅴ影院| 不卡一区中文字幕| 亚洲黄网站在线观看| 欧美欧美午夜aⅴ在线观看| 国产精品欧美综合在线| 综合激情网...| 色婷婷av一区二区三区gif| 亚洲va韩国va欧美va精品| 日韩一级免费观看| 成人精品一区二区三区四区| 亚洲手机成人高清视频| 欧美电影影音先锋| 成人免费av网站| 亚洲一区二区高清| 久久久www成人免费毛片麻豆| heyzo一本久久综合| 日本成人在线一区| 国产精品国产a| 欧美一区三区二区| 不卡的av在线| 久久精品久久99精品久久| 自拍偷自拍亚洲精品播放| 国产精品综合一区二区三区| 亚洲日本韩国一区| 国产98色在线|日韩| 狠狠狠色丁香婷婷综合久久五月| 一区二区三区四区在线| 日韩一区二区三区视频在线| 91麻豆免费看| 国产a级毛片一区| 亚洲成av人影院在线观看网| 国产精品色呦呦| 日韩欧美国产一区二区三区| 欧美在线色视频| 成人h动漫精品一区二区 | 日韩黄色在线观看| 亚洲欧洲日本在线| 久久久蜜桃精品| 91精品久久久久久久99蜜桃| eeuss影院一区二区三区| 美女网站色91| 五月婷婷欧美视频| 亚洲精品第一国产综合野| 色欧美片视频在线观看| 日韩中文字幕麻豆| 在线看日本不卡| 国产一区二区三区香蕉| 国产欧美精品一区二区色综合朱莉| 春色校园综合激情亚洲| 激情综合网av| 久久99精品久久久久久动态图 | 91精品福利在线一区二区三区| www.一区二区| 91网站视频在线观看| 久久国产精品99久久人人澡| 秋霞午夜鲁丝一区二区老狼| 午夜精品久久久久久久99樱桃| 亚洲免费三区一区二区| 亚洲天堂网中文字| 1024亚洲合集| 一区二区三区在线免费观看 | 欧美精品一级二级| 91理论电影在线观看| 91在线一区二区| 91国模大尺度私拍在线视频|