org.ehcache
Interface PersistentCacheManager

All Superinterfaces:
CacheManager, java.io.Closeable

public interface PersistentCacheManager
extends CacheManager

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

destroy

void destroy()
             throws CachePersistenceException
Destroys all persistent data associated with this PersistentCacheManager.

This is achieved by putting the CacheManager in MAINTENANCE mode, executing the destroy and then exiting the MAINTENANCE mode.

Throws:
java.lang.IllegalStateException - if state maintenance couldn't be reached
CachePersistenceException - when something goes wrong destroying the persistent data

destroyCache

void destroyCache(java.lang.String alias)
                  throws CachePersistenceException
Destroys all data persistent data associated with the aliased Cache instance managed by this CacheManager

Parameters:
alias - the Cache's alias to destroy all persistent data from
Throws:
CachePersistenceException - when something goes wrong destroying the persistent data