Package org.nuxeo.ecm.core.cache
Class AbstractCache
- java.lang.Object
-
- org.nuxeo.ecm.core.cache.AbstractCache
-
- All Implemented Interfaces:
Cache
,CacheManagement
- Direct Known Subclasses:
InMemoryCacheImpl
public abstract class AbstractCache extends Object implements CacheManagement
Abstract class to be extended to provide new cache implementation- Since:
- 6.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCache(CacheDescriptor desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Get cache name as specified in the descriptorvoid
start()
Starts this cache.void
stop()
Stops this cache and releases related resources.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.cache.Cache
computeIfAbsent, get, hasEntry, invalidate, invalidateAll, keySet, put
-
Methods inherited from interface org.nuxeo.ecm.core.cache.CacheManagement
getSize, invalidateLocal, invalidateLocalAll, putLocal
-
-
-
-
Field Detail
-
name
protected final String name
-
ttl
public final long ttl
-
-
Constructor Detail
-
AbstractCache
protected AbstractCache(CacheDescriptor desc)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Cache
Get cache name as specified in the descriptor
-
start
public void start()
Description copied from interface:CacheManagement
Starts this cache.- Specified by:
start
in interfaceCacheManagement
-
stop
public void stop()
Description copied from interface:CacheManagement
Stops this cache and releases related resources.- Specified by:
stop
in interfaceCacheManagement
-
-