|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistentCacheManager
A CacheManager
that knows how to lifecycle caches that can outlive the JVM.
Method Summary | |
---|---|
void |
destroy()
Destroys all persistent data associated with this PersistentCacheManager . |
void |
destroyCache(java.lang.String alias)
Destroys all data persistent data associated with the aliased Cache instance managed
by this CacheManager . |
Methods inherited from interface org.ehcache.CacheManager |
---|
close, createCache, createCache, getCache, getRuntimeConfiguration, getStatus, init, removeCache |
Method Detail |
---|
void destroy() throws CachePersistenceException
PersistentCacheManager
.
This is achieved by putting the CacheManager
in MAINTENANCE
mode,
executing the destroy and then exiting the MAINTENANCE
mode.
java.lang.IllegalStateException
- if state maintenance couldn't be reached
CachePersistenceException
- when something goes wrong destroying the persistent datavoid destroyCache(java.lang.String alias) throws CachePersistenceException
Cache
instance managed
by this CacheManager
.
This requires the CacheManager
to be either in AVAILABLE
or
MAINTENANCE
mode.
CacheManager
is AVAILABLE
, the operation is executed without lifecycle interactions.CacheManager
is not AVAILABLE
then it attempts to go into MAINTENANCE
.
Upon success, the destroyCache
operation is performed and then MAINTENANCE
mode is exited.
On failure, an exception will be thrown and no destroy will have happened.
alias
- the Cache
's alias to destroy all persistent data from
CachePersistenceException
- when something goes wrong destroying the persistent data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |