org.jboss.ejb.plugins
Class LRUStatefulContextCachePolicy

java.lang.Object
  extended byorg.jboss.util.LRUCachePolicy (src) 
      extended byorg.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy (src) 
          extended byorg.jboss.ejb.plugins.LRUStatefulContextCachePolicy
All Implemented Interfaces:
CachePolicy (src) , Monitorable (src) , XmlLoadable (src)

public class LRUStatefulContextCachePolicy
extends LRUEnterpriseContextCachePolicy (src)

Least Recently Used cache policy for StatefulSessionEnterpriseContexts.


Nested Class Summary
protected  class LRUStatefulContextCachePolicy.RemoverTask (src)
          This TimerTask removes beans that have not been called for a while.
 
Nested classes inherited from class org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy (src)
LRUEnterpriseContextCachePolicy.ContextLRUList (src) , LRUEnterpriseContextCachePolicy.OveragerTask (src) , LRUEnterpriseContextCachePolicy.ResizerTask (src)
 
Nested classes inherited from class org.jboss.util.LRUCachePolicy (src)
LRUCachePolicy.LRUCacheEntry (src) , LRUCachePolicy.LRUList (src)
 
Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy (src)
log, tasksTimer
 
Fields inherited from class org.jboss.util.LRUCachePolicy (src)
m_list, m_map, m_maxCapacity, m_minCapacity
 
Constructor Summary
LRUStatefulContextCachePolicy(AbstractInstanceCache (src)  eic)
          Creates a LRU cache policy object given the instance cache that use this policy object.
 
Method Summary
 void importXml(org.w3c.dom.Element element)
          Reads from the configuration the parameters for this cache policy, that are all optionals.
 void start()
          Starts this cache that is now ready to be used.
 void stop()
          Stops this cache thus LRUCachePolicy.flush()ing all cached objects.
 
Methods inherited from class org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy (src)
ageOut, cacheMiss, createList, destroy, sample
 
Methods inherited from class org.jboss.util.LRUCachePolicy (src)
create, createCacheEntry, flush, get, insert, peek, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LRUStatefulContextCachePolicy

public LRUStatefulContextCachePolicy(AbstractInstanceCache (src)  eic)
Creates a LRU cache policy object given the instance cache that use this policy object.

Method Detail

start

public void start()
Description copied from class: LRUCachePolicy (src)
Starts this cache that is now ready to be used.

Specified by:
start in interface CachePolicy (src)
Overrides:
start in class LRUEnterpriseContextCachePolicy (src)

stop

public void stop()
Description copied from class: LRUCachePolicy (src)
Stops this cache thus LRUCachePolicy.flush()ing all cached objects.
After this method is called, a call to LRUCachePolicy.start() will restart the cache.

Specified by:
stop in interface CachePolicy (src)
Overrides:
stop in class LRUEnterpriseContextCachePolicy (src)

importXml

public void importXml(org.w3c.dom.Element element)
               throws DeploymentException (src) 
Reads from the configuration the parameters for this cache policy, that are all optionals.

Specified by:
importXml in interface XmlLoadable (src)
Overrides:
importXml in class LRUEnterpriseContextCachePolicy (src)
Throws:
DeploymentException (src)