org.ehcache
Interface PersistentCacheManager

All Superinterfaces:
CacheManager
All Known Implementing Classes:
EhcacheManager

public interface PersistentCacheManager
extends CacheManager

A CacheManager that knows how to lifecycle Cache data that outlive the JVM's process existence.


Method Summary
 void destroyCache(java.lang.String alias)
          Destroys all data persistent data associated with the aliased Cache instance managed by this CacheManager
 Maintainable toMaintenance()
          Lets you manipulate the persistent data structures for this PersistentCacheManager
 
Methods inherited from interface org.ehcache.CacheManager
close, createCache, getCache, getStatus, init, removeCache
 

Method Detail

toMaintenance

Maintainable toMaintenance()
Lets you manipulate the persistent data structures for this PersistentCacheManager

Returns:
a Maintainable for this PersistentCacheManager
Throws:
java.lang.IllegalStateException - if state Status.MAINTENANCE couldn't be reached

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