|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.jcache.JCacheFactory
public class JCacheFactory
A CacheFactory implementation for JCache. This factory uses ehcache in singleton CacheManager mode i.e. one per classloader.
Constructor Summary | |
---|---|
JCacheFactory()
|
Method Summary | |
---|---|
net.sf.jsr107cache.Cache |
createCache(java.util.Map environment)
Creates a new implementation specific Cache object using the environment parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCacheFactory()
Method Detail |
---|
public net.sf.jsr107cache.Cache createCache(java.util.Map environment) throws net.sf.jsr107cache.CacheException
createCache
in interface net.sf.jsr107cache.CacheFactory
environment
- String values for the following properties:
String name,
int maxElementsInMemory,
MemoryStoreEvictionPolicy memoryStoreEvictionPolicy (one of LFU, LRU or FIFO)
boolean overflowToDisk,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSeconds,
int maxElementsOnDisk,
String cacheLoaderFactoryClassName
Note that the following cannot be set using this factory method:
net.sf.jsr107cache.CacheException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |