FileDocCategorySizeDatePackage
FIFOSessionCache.javaAPI DocGlassfish v2 API2925Fri May 04 22:33:00 BST 2007com.sun.ejb.containers.util.cache

FIFOSessionCache

public class FIFOSessionCache extends LruSessionCache

Fields Summary
Constructors Summary
public FIFOSessionCache(String cacheName, com.sun.ejb.spi.container.SFSBContainerCallback container, int cacheIdleTime, int removalTime)

    	super("FIFO-" + cacheName, container, cacheIdleTime, removalTime);
    
Methods Summary
protected voiditemAccessed(CacheItem item)

        LruCacheItem lc = (LruCacheItem) item;
        synchronized (this) {
            if (lc.isTrimmed) {
                lc.isTrimmed = false;
                CacheItem overflow = super.itemAdded(item);
                if (overflow != null) {
                    trimItem(overflow);
                }
            }
        }
    
protected voiditemRefreshed(CacheItem item, int oldSize)

    
public voidtrimTimedoutItems(int maxCount)

        trimUnSortedTimedoutItems(maxCount);