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

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

?? abstractcacheadministrator.java

?? oscache-2.4.1-full
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package com.opensymphony.oscache.base;

import com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache;
import com.opensymphony.oscache.base.events.*;
import com.opensymphony.oscache.base.persistence.PersistenceListener;
import com.opensymphony.oscache.util.StringUtil;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.*;

import javax.swing.event.EventListenerList;

/**
 * An AbstractCacheAdministrator defines an abstract cache administrator, implementing all
 * the basic operations related to the configuration of a cache, including assigning
 * any configured event handlers to cache objects.<p>
 *
 * Extend this class to implement a custom cache administrator.
 *
 * @version        $Revision: 425 $
 * @author        a href="mailto:mike@atlassian.com">Mike Cannon-Brookes</a>
 * @author <a href="mailto:fbeauregard@pyxis-tech.com">Francois Beauregard</a>
 * @author <a href="mailto:abergevin@pyxis-tech.com">Alain Bergevin</a>
 * @author <a href="mailto:fabian.crabus@gurulogic.de">Fabian Crabus</a>
 * @author <a href="&#109;a&#105;&#108;&#116;&#111;:chris&#64;swebtec.&#99;&#111;&#109;">Chris Miller</a>
 */
public abstract class AbstractCacheAdministrator implements java.io.Serializable {
    private static transient final Log log = LogFactory.getLog(AbstractCacheAdministrator.class);

    /**
     * A boolean cache configuration property that indicates whether the cache
     * should cache objects in memory. Set this property to <code>false</code>
     * to disable in-memory caching.
     */
    public final static String CACHE_MEMORY_KEY = "cache.memory";

    /**
     * An integer cache configuration property that specifies the maximum number
     * of objects to hold in the cache. Setting this to a negative value will
     * disable the capacity functionality - there will be no limit to the number
     * of objects that are held in cache.
     */
    public final static String CACHE_CAPACITY_KEY = "cache.capacity";

    /**
     * A String cache configuration property that specifies the classname of
     * an alternate caching algorithm. This class must extend
     * {@link com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache}
     * By default caches will use {@link com.opensymphony.oscache.base.algorithm.LRUCache} as
     * the default algorithm if the cache capacity is set to a postive value, or
     * {@link com.opensymphony.oscache.base.algorithm.UnlimitedCache} if the
     * capacity is negative (ie, disabled).
     */
    public final static String CACHE_ALGORITHM_KEY = "cache.algorithm";

    /**
     * A boolean cache configuration property that indicates whether the persistent
     * cache should be unlimited in size, or should be restricted to the same size
     * as the in-memory cache. Set this property to <code>true</code> to allow the
     * persistent cache to grow without bound.
     */
    public final static String CACHE_DISK_UNLIMITED_KEY = "cache.unlimited.disk";

    /**
     * The configuration key that specifies whether we should block waiting for new
     * content to be generated, or just serve the old content instead. The default
     * behaviour is to serve the old content since that provides the best performance
     * (at the cost of serving slightly stale data).
     */
    public final static String CACHE_BLOCKING_KEY = "cache.blocking";

    /**
     * A String cache configuration property that specifies the classname that will
     * be used to provide cache persistence. This class must extend {@link PersistenceListener}.
     */
    public static final String PERSISTENCE_CLASS_KEY = "cache.persistence.class";

    /**
     * A String cache configuration property that specifies if the cache persistence
     * will only be used in overflow mode, that is, when the memory cache capacity has been reached.
     */
    public static final String CACHE_PERSISTENCE_OVERFLOW_KEY = "cache.persistence.overflow.only";

    /**
     * A String cache configuration property that holds a comma-delimited list of
     * classnames. These classes specify the event handlers that are to be applied
     * to the cache.
     */
    public static final String CACHE_ENTRY_EVENT_LISTENERS_KEY = "cache.event.listeners";
    protected Config config = null;

    /**
     * Holds a list of all the registered event listeners. Event listeners are specified
     * using the {@link #CACHE_ENTRY_EVENT_LISTENERS_KEY} configuration key.
     */
    protected EventListenerList listenerList = new EventListenerList();

    /**
     * The algorithm class being used, as specified by the {@link #CACHE_ALGORITHM_KEY}
     * configuration property.
     */
    protected String algorithmClass = null;

    /**
     * The cache capacity (number of entries), as specified by the {@link #CACHE_CAPACITY_KEY}
     * configuration property.
     */
    protected int cacheCapacity = -1;

    /**
     * Whether the cache blocks waiting for content to be build, or serves stale
     * content instead. This value can be specified using the {@link #CACHE_BLOCKING_KEY}
     * configuration property.
     */
    private boolean blocking = false;

    /**
     * Whether or not to store the cache entries in memory. This is configurable using the
     * {@link com.opensymphony.oscache.base.AbstractCacheAdministrator#CACHE_MEMORY_KEY} property.
     */
    private boolean memoryCaching = true;

    /**
     * Whether the persistent cache should be used immediately or only when the memory capacity
         * has been reached, ie. overflow only.
     * This can be set via the {@link #CACHE_PERSISTENCE_OVERFLOW_KEY} configuration property.
     */
    private boolean overflowPersistence;

    /**
     * Whether the disk cache should be unlimited in size, or matched 1-1 to the memory cache.
     * This can be set via the {@link #CACHE_DISK_UNLIMITED_KEY} configuration property.
     */
    private boolean unlimitedDiskCache;

    /**
     * Create the AbstractCacheAdministrator.
     * This will initialize all values and load the properties from oscache.properties.
     */
    protected AbstractCacheAdministrator() {
        this(null);
    }

    /**
     * Create the AbstractCacheAdministrator.
     *
     * @param p the configuration properties for this cache.
     */
    protected AbstractCacheAdministrator(Properties p) {
        loadProps(p);
        initCacheParameters();

        if (log.isDebugEnabled()) {
            log.debug("Constructed AbstractCacheAdministrator()");
        }
    }

    /**
     * Sets the algorithm to use for the cache.
     *
     * @see com.opensymphony.oscache.base.algorithm.LRUCache
     * @see com.opensymphony.oscache.base.algorithm.FIFOCache
     * @see com.opensymphony.oscache.base.algorithm.UnlimitedCache
     * @param newAlgorithmClass The class to use (eg.
     * <code>"com.opensymphony.oscache.base.algorithm.LRUCache"</code>)
     */
    public void setAlgorithmClass(String newAlgorithmClass) {
        algorithmClass = newAlgorithmClass;
    }

    /**
     * Indicates whether the cache will block waiting for new content to
     * be built, or serve stale content instead of waiting. Regardless of this
     * setting, the cache will <em>always</em> block if new content is being
     * created, ie, there's no stale content in the cache that can be served.
     */
    public boolean isBlocking() {
        return blocking;
    }

    /**
     * Sets the cache capacity (number of items). Administrator implementations
     * should override this method to ensure that their {@link Cache} objects
     * are updated correctly (by calling {@link AbstractConcurrentReadCache#setMaxEntries(int)}}}.
     *
     * @param newCacheCapacity The new capacity
     */
    protected void setCacheCapacity(int newCacheCapacity) {
        cacheCapacity = newCacheCapacity;
    }

    /**
     * Whether entries are cached in memory or not.
     * Default is true.
     * Set by the <code>cache.memory</code> property.
     *
     * @return Status whether or not memory caching is used.
     */
    public boolean isMemoryCaching() {
        return memoryCaching;
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丁香另类激情小说| 亚洲一二三四久久| 国产激情一区二区三区| 精品国产成人系列| 久久成人免费日本黄色| 精品成人一区二区三区四区| 国产自产v一区二区三区c| 国产欧美一区二区在线观看| 成人av电影免费在线播放| 亚洲一区二区在线视频| 日韩欧美亚洲国产另类| 国产成人精品在线看| 亚洲欧美在线视频| 欧美日韩免费一区二区三区 | 日韩三级中文字幕| 国产一区二区三区免费看| 欧美国产精品v| 在线视频中文字幕一区二区| 日韩高清不卡在线| 国产亲近乱来精品视频| 在线欧美日韩精品| 久久精品免费观看| 综合中文字幕亚洲| 欧美一级欧美一级在线播放| 国产精品夜夜爽| 亚洲精品水蜜桃| 日韩欧美不卡在线观看视频| 国产成人免费av在线| 亚洲精品老司机| 日韩欧美亚洲国产另类| 成人激情综合网站| 日本最新不卡在线| 亚洲另类在线制服丝袜| 精品日韩av一区二区| 93久久精品日日躁夜夜躁欧美| 亚洲国产精品人人做人人爽| 欧美大尺度电影在线| 99久久精品国产精品久久| 日韩高清一区在线| 中文字幕日韩一区二区| 欧美视频你懂的| 国产 欧美在线| 美腿丝袜亚洲综合| 亚洲综合视频在线观看| 久久久久久久久久久久久久久99| 在线观看视频91| 粉嫩绯色av一区二区在线观看 | 欧美福利视频一区| 99国产精品一区| 韩国av一区二区| 日韩成人精品视频| 夜夜嗨av一区二区三区| 国产精品欧美一级免费| 精品国精品国产尤物美女| 欧美日韩国产精选| 色伊人久久综合中文字幕| 国产精品一线二线三线| 精品制服美女丁香| 日韩高清一区二区| 亚洲第一福利一区| 一区二区三区在线免费播放| 国产精品久久久久影院老司| 亚洲精品一区二区三区影院 | 精品国产一区二区三区四区四 | 欧美日韩免费不卡视频一区二区三区| 国产69精品久久久久毛片| 狠狠色狠狠色综合日日91app| 一个色综合网站| 亚洲精品免费在线观看| 国产精品成人在线观看| 国产日韩综合av| 国产亚洲一区字幕| 欧美国产精品中文字幕| 欧美韩国一区二区| 国产精品人妖ts系列视频| 国产亚洲欧洲997久久综合 | 国产日韩三级在线| 国产欧美精品区一区二区三区| 2020国产精品| 久久精品亚洲一区二区三区浴池 | 亚洲人成网站色在线观看| 国产欧美一区在线| 亚洲欧洲日韩在线| 一区二区三区四区精品在线视频| 亚洲欧美日韩小说| 亚洲成人动漫精品| 日本最新不卡在线| 国产麻豆精品一区二区| 国产精品一品视频| 91小视频在线观看| 欧美精品乱码久久久久久按摩| 欧美精品v国产精品v日韩精品| 777久久久精品| 精品少妇一区二区三区日产乱码| 精品国产91九色蝌蚪| 中文字幕av一区二区三区高| 中文字幕日韩欧美一区二区三区| 最新日韩在线视频| 亚洲第一电影网| 狠狠色丁香久久婷婷综| 成人成人成人在线视频| 欧美日韩国产片| 久久这里只有精品首页| 国产精品午夜免费| 亚洲福中文字幕伊人影院| 奇米色一区二区三区四区| 国产激情一区二区三区四区| 色综合中文字幕国产 | 亚洲欧洲色图综合| 亚洲综合图片区| 激情另类小说区图片区视频区| 成人美女视频在线看| 91福利小视频| 久久影音资源网| 亚洲综合999| 国产黄色成人av| 欧美日韩dvd在线观看| 久久亚洲综合色一区二区三区| 亚洲色图制服诱惑 | 亚洲男同性视频| 日韩高清不卡在线| 色综合天天综合色综合av| 日韩一区二区三区免费看| 国产精品网曝门| 午夜视频一区二区三区| 成人性生交大片| 欧美xxxx在线观看| 亚洲妇熟xx妇色黄| eeuss鲁片一区二区三区在线观看| 欧美一区二区三区的| 中文字幕在线一区免费| 美女一区二区在线观看| 色狠狠av一区二区三区| 国产三级一区二区| 日本成人在线看| 色婷婷精品大在线视频| 久久精品无码一区二区三区| 日韩国产欧美在线视频| 91亚洲男人天堂| 中文字幕va一区二区三区| 精品亚洲成a人在线观看 | 在线观看91av| 一区二区欧美精品| av日韩在线网站| 中文字幕不卡一区| 国产一区二区三区香蕉| 欧美xingq一区二区| 亚洲不卡av一区二区三区| 色婷婷综合久色| 国产精品日产欧美久久久久| 狠狠色丁香婷婷综合| 日韩亚洲欧美综合| 婷婷国产在线综合| 欧美亚洲一区二区三区四区| 中文字幕亚洲欧美在线不卡| 成人激情视频网站| 国产午夜精品一区二区三区视频 | 天天操天天干天天综合网| 91看片淫黄大片一级在线观看| 国产日韩欧美制服另类| 国产乱妇无码大片在线观看| 7777精品伊人久久久大香线蕉最新版| 亚洲欧美日韩国产成人精品影院| 国产成人精品综合在线观看 | 91精品国产91综合久久蜜臀| 亚洲午夜国产一区99re久久| 国产亲近乱来精品视频 | av激情成人网| 亚洲日本韩国一区| 99国产精品99久久久久久| 国产欧美va欧美不卡在线| 国产成人夜色高潮福利影视| 国产拍揄自揄精品视频麻豆| 国产不卡免费视频| 国产精品乱码一区二区三区软件| 丁香亚洲综合激情啪啪综合| 国产精品嫩草99a| www.欧美色图| 一区二区三区四区激情| 欧美理论片在线| 久久99国产乱子伦精品免费| 久久网站最新地址| 东方欧美亚洲色图在线| 亚洲免费观看高清| 欧美日韩国产a| 国产中文字幕精品| 国产精品福利一区二区三区| 色婷婷一区二区三区四区| 偷拍亚洲欧洲综合| 久久综合九色综合97婷婷女人| 国产高清精品久久久久| 国产精品午夜免费| 欧美中文字幕不卡| 蜜臀久久99精品久久久画质超高清| 精品久久国产97色综合| 成人视屏免费看| 日韩制服丝袜先锋影音| 久久久久成人黄色影片| 91影院在线免费观看| 亚欧色一区w666天堂|