org.jboss.virtual.plugins.cache
Class TimedVFSCache

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.TimedCachePolicy>
              extended by org.jboss.virtual.plugins.cache.TimedVFSCache
All Implemented Interfaces:
CacheStatistics, VFSCache
Direct Known Subclasses:
IterableTimedVFSCache

public class TimedVFSCache
extends CachePolicyVFSCache<org.jboss.util.TimedCachePolicy>

Timed cache policy vfs cache.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.virtual.plugins.cache.AbstractVFSCache
log
 
Constructor Summary
TimedVFSCache()
           
TimedVFSCache(Integer defaultLifetime)
           
TimedVFSCache(Integer defaultLifetime, Boolean threadSafe, Integer resolution)
           
TimedVFSCache(Map<Object,Object> properties)
           
 
Method Summary
protected  org.jboss.util.TimedCachePolicy createCachePolicy()
          Create cache policy.
 Iterable<VFSContext> getCachedContexts()
          Get cached contexts.
protected  String getCacheName()
          Get the cache name.
 void setDefaultLifetime(Integer defaultLifetime)
          Set default lifetime.
 void setResolution(Integer resolution)
          The resollution.
 void setThreadSafe(Boolean threadSafe)
          Set threadsafe flag.
 String toString()
           
 
Methods inherited from class org.jboss.virtual.plugins.cache.CachePolicyVFSCache
check, flush, 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

TimedVFSCache

public TimedVFSCache()

TimedVFSCache

public TimedVFSCache(Integer defaultLifetime)

TimedVFSCache

public TimedVFSCache(Integer defaultLifetime,
                     Boolean threadSafe,
                     Integer resolution)

TimedVFSCache

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

getCachedContexts

public Iterable<VFSContext> getCachedContexts()
Description copied from interface: CacheStatistics
Get cached contexts.

Specified by:
getCachedContexts in interface CacheStatistics
Overrides:
getCachedContexts in class CachePolicyVFSCache<org.jboss.util.TimedCachePolicy>
Returns:
the cached contexts

createCachePolicy

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

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

getCacheName

protected String getCacheName()
Get the cache name.

Returns:
the cache name

setDefaultLifetime

public void setDefaultLifetime(Integer defaultLifetime)
Set default lifetime.

Parameters:
defaultLifetime - the default lifetime

setThreadSafe

public void setThreadSafe(Boolean threadSafe)
Set threadsafe flag.

Parameters:
threadSafe - the threadsafe flag

setResolution

public void setResolution(Integer resolution)
The resollution.

Parameters:
resolution - the resolution

toString

public String toString()
Overrides:
toString in class Object


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