com.sun.ejb.containers.util.cache
Class PassivatedSessionCache

java.lang.Object
  extended by com.sun.ejb.containers.util.cache.BaseCache
      extended by com.sun.ejb.containers.util.cache.LruCache
          extended by com.sun.ejb.containers.util.cache.PassivatedSessionCache
All Implemented Interfaces:
Cache

public class PassivatedSessionCache
extends LruCache


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.ejb.containers.util.cache.LruCache
LruCache.LruCacheItem
 
Nested classes/interfaces inherited from class com.sun.ejb.containers.util.cache.BaseCache
BaseCache.CacheItem
 
Field Summary
 
Fields inherited from class com.sun.ejb.containers.util.cache.LruCache
_logger, cacheName, head, listSize, NO_TIMEOUT, tail, timeout, trimCount
 
Fields inherited from class com.sun.ejb.containers.util.cache.BaseCache
_rb, addCount, addCountLk, bucketLocks, buckets, entryCount, entryCountLk, hitCount, hitCountLk, listeners, maxBuckets, missCount, missCountLk, overflowCount, overflowCountLk, refreshCount, refreshCountLk, refreshFlags, removalCount, removalCountLk, threshold
 
Constructor Summary
PassivatedSessionCache()
          default constructor
PassivatedSessionCache(long timeout)
          constructor with specified timeout
 
Method Summary
protected  boolean isThresholdReached()
          has cache reached its threshold
protected  BaseCache.CacheItem itemAdded(BaseCache.CacheItem item)
          this item is just added to the cache
 
Methods inherited from class com.sun.ejb.containers.util.cache.LruCache
createItem, getStatByName, getStats, itemAccessed, itemRefreshed, itemRemoved, setCacheName, trimExpiredEntries, trimLru
 
Methods inherited from class com.sun.ejb.containers.util.cache.BaseCache
_put, _remove, _removeItem, add, add, addCacheListener, clear, clearStats, contains, decrementEntryCount, destroy, elements, eq, get, get, getAll, getEntryCount, getIndex, getIndex, handleOverflow, hash, incrementAddCount, incrementEntryCount, incrementHitCount, incrementMissCount, incrementOverflowCount, incrementRefreshCount, incrementRemovalCount, init, init, isEmpty, keys, loadValue, notifyRefresh, put, put, remove, remove, remove, removeAll, trimItem, values, waitRefresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassivatedSessionCache

public PassivatedSessionCache()
default constructor


PassivatedSessionCache

public PassivatedSessionCache(long timeout)
constructor with specified timeout

Method Detail

itemAdded

protected BaseCache.CacheItem itemAdded(BaseCache.CacheItem item)
this item is just added to the cache

Overrides:
itemAdded in class LruCache
Parameters:
item - CacheItem that was created
Returns:
a overflow item; may be null Cache bucket is already synchronized by the caller

isThresholdReached

protected boolean isThresholdReached()
Description copied from class: BaseCache
has cache reached its threshold

Overrides:
isThresholdReached in class BaseCache
Returns:
true when the cache reached its threshold


Copyright © 2012 GlassFish Community. All Rights Reserved.