Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.database.cache
Class CacheElement

java.lang.Object
  extended by org.jboss.dashboard.factory.BasicFactoryElement
      extended by org.jboss.dashboard.database.cache.CacheElement
All Implemented Interfaces:
Serializable, FactoryLifecycle

public class CacheElement
extends BasicFactoryElement

This class represents a cache element with ehcache style, but intended to be used by all types of caches

See Also:
Serialized Form

Constructor Summary
CacheElement()
           
 
Method Summary
 String getDiskCachePath()
           
 long getDiskExpiryThreadIntervalSeconds()
           
 int getMaxElementsInMemory()
           
 String getMemoryStoreEvictionPolicy()
           
 String getName()
           
 long getTimeToIdleSeconds()
           
 long getTimeToLiveSeconds()
           
 boolean isDiskPersistent()
           
 boolean isEternal()
           
 boolean isOverflowToDisk()
           
 void setDiskCachePath(String diskCachePath)
           
 void setDiskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)
           
 void setDiskPersistent(boolean diskPersistent)
           
 void setEternal(boolean eternal)
           
 void setMaxElementsInMemory(int maxElementsInMemory)
           
 void setMemoryStoreEvictionPolicy(String memoryStoreEvictionPolicy)
           
 void setName(String name)
           
 void setOverflowToDisk(boolean overflowToDisk)
           
 void setTimeToIdleSeconds(long timeToIdleSeconds)
           
 void setTimeToLiveSeconds(long timeToLiveSeconds)
           
 
Methods inherited from class org.jboss.dashboard.factory.BasicFactoryElement
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheElement

public CacheElement()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getMaxElementsInMemory

public int getMaxElementsInMemory()

setMaxElementsInMemory

public void setMaxElementsInMemory(int maxElementsInMemory)

isEternal

public boolean isEternal()

setEternal

public void setEternal(boolean eternal)

isOverflowToDisk

public boolean isOverflowToDisk()

setOverflowToDisk

public void setOverflowToDisk(boolean overflowToDisk)

getTimeToIdleSeconds

public long getTimeToIdleSeconds()

setTimeToIdleSeconds

public void setTimeToIdleSeconds(long timeToIdleSeconds)

getTimeToLiveSeconds

public long getTimeToLiveSeconds()

setTimeToLiveSeconds

public void setTimeToLiveSeconds(long timeToLiveSeconds)

isDiskPersistent

public boolean isDiskPersistent()

setDiskPersistent

public void setDiskPersistent(boolean diskPersistent)

getDiskExpiryThreadIntervalSeconds

public long getDiskExpiryThreadIntervalSeconds()

setDiskExpiryThreadIntervalSeconds

public void setDiskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)

getMemoryStoreEvictionPolicy

public String getMemoryStoreEvictionPolicy()

setMemoryStoreEvictionPolicy

public void setMemoryStoreEvictionPolicy(String memoryStoreEvictionPolicy)

setDiskCachePath

public void setDiskCachePath(String diskCachePath)

getDiskCachePath

public String getDiskCachePath()

Dashboard Builder Commons 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.