| org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy
All known Subclasses: org.jboss.ejb.plugins.LRUStatefulContextCachePolicy,
Inner Class :protected class ResizerTask extends TimerTask | |
Inner Class :protected class OveragerTask extends TimerTask | |
Inner Class :protected class ContextLRUList extends LRUList | |
Method Summary | |
protected void | ageOut(LRUCacheEntry entry) | protected void | cacheMiss() | protected LRUList | createList() | public void | destroy() | public void | flush() Flush is overriden here because in this policy impl
flush might not actually remove all the instances from the cache.
Those instances that are in use (associated with a transaction) should not
be removed from the cache. | public void | importXml(Element element) Reads from the configuration the parameters for this cache policy, that are
all optionals. | public void | sample(Object s) | public void | start() | public void | stop() |
log | protected static Logger log(Code) | | |
LRUEnterpriseContextCachePolicy | public LRUEnterpriseContextCachePolicy(AbstractInstanceCache eic)(Code) | | Creates a LRU cache policy object given the instance cache that use
this policy object.
|
ageOut | protected void ageOut(LRUCacheEntry entry)(Code) | | |
cacheMiss | protected void cacheMiss()(Code) | | |
createList | protected LRUList createList()(Code) | | |
destroy | public void destroy()(Code) | | |
flush | public void flush()(Code) | | Flush is overriden here because in this policy impl
flush might not actually remove all the instances from the cache.
Those instances that are in use (associated with a transaction) should not
be removed from the cache. So, the iteration is done not until the cache is empty
but until we tried to age-out every instance in the cache.
|
importXml | public void importXml(Element element) throws DeploymentException(Code) | | Reads from the configuration the parameters for this cache policy, that are
all optionals.
FIXME 20010626 marcf:
Simone seriously arent' all the options overkill? give it another 6 month .
Remember you are exposing the guts of this to the end user, also provide defaults
so that if an entry is not specified you can still work and it looks _much_ better in
the configuration files.
|
start | public void start()(Code) | | |
|
|