org.jboss.virtual.plugins.cache
Class LRUVFSCache

java.lang.Object
  extended by org.jboss.virtual.plugins.cache.AbstractVFSCache
      extended by org.jboss.virtual.plugins.cache.PathMatchingVFSCache
          extended by org.jboss.virtual.plugins.cache.CachePolicyVFSCache<org.jboss.util.LRUCachePolicy>
              extended by org.jboss.virtual.plugins.cache.LRUVFSCache
All Implemented Interfaces:
CacheStatistics, VFSCache

public class LRUVFSCache
extends CachePolicyVFSCache<org.jboss.util.LRUCachePolicy>

LRU cache policy vfs cache.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.virtual.plugins.cache.AbstractVFSCache
log
 
Constructor Summary
LRUVFSCache()
           
LRUVFSCache(Integer min, Integer max)
           
LRUVFSCache(Map<Object,Object> properties)
           
 
Method Summary
protected  org.jboss.util.LRUCachePolicy createCachePolicy()
          Create cache policy.
 void setMax(Integer max)
          set max.
 void setMin(Integer min)
          Set min.
 String toString()
           
 
Methods inherited from class org.jboss.virtual.plugins.cache.CachePolicyVFSCache
check, flush, getCachedContexts, getContext, getInteger, getPolicy, parseInteger, putContext, readInstanceProperties, readSystemProperty, removeContext, size, start, stop
 
Methods inherited from class org.jboss.virtual.plugins.cache.PathMatchingVFSCache
findContext
 
Methods inherited from class org.jboss.virtual.plugins.cache.AbstractVFSCache
findContext, lastInsert, putContext, readLock, readUnlock, removeContext, writeLock, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LRUVFSCache

public LRUVFSCache()

LRUVFSCache

public LRUVFSCache(Integer min,
                   Integer max)

LRUVFSCache

public LRUVFSCache(Map<Object,Object> properties)
Method Detail

createCachePolicy

protected org.jboss.util.LRUCachePolicy createCachePolicy()
Description copied from class: CachePolicyVFSCache
Create cache policy.

Specified by:
createCachePolicy in class CachePolicyVFSCache<org.jboss.util.LRUCachePolicy>
Returns:
the cache policy

setMin

public void setMin(Integer min)
Set min.

Parameters:
min - the min

setMax

public void setMax(Integer max)
set max.

Parameters:
max - the max

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss, A division of Red Hat, Inc. All Rights Reserved.