public interface PersistentCacheManager extends CacheManager
Cache
data that outlive the JVM's process existence.Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys all persistent data associated with this
CacheManager . |
void |
destroyCache(java.lang.String alias)
Destroys all data persistent data associated with the aliased
Cache instance managed
by this CacheManager |
close, createCache, getCache, getRuntimeConfiguration, getStatus, init, removeCache
void destroy()
CacheManager
.
This is achieved by putting the CacheManager
in maintenance mode, executing the destroy and then exiting
the maintenance mode.
java.lang.IllegalStateException
- if state Status.MAINTENANCE
couldn't be reachedvoid destroyCache(java.lang.String alias) throws CachePersistenceException
Cache
instance managed
by this CacheManager
alias
- the Cache
's alias to destroy all persistent data fromCachePersistenceException
- When something goes wrong destroying the persistent data