org.ehcache
Interface PersistentUserManagedCache<K,V>

Type Parameters:
K - the key type for the cache
V - the value type for the cache
All Superinterfaces:
Cache<K,V>, java.io.Closeable, java.lang.Iterable<Cache.Entry<K,V>>, UserManagedCache<K,V>

public interface PersistentUserManagedCache<K,V>
extends UserManagedCache<K,V>

A UserManagedCache that holds data that can outlive the JVM.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ehcache.Cache
Cache.Entry<K,V>
 
Method Summary
 void destroy()
          Destroys all persistent data structures for this PersistentUserManagedCache.
 
Methods inherited from interface org.ehcache.UserManagedCache
close, getStatus, init
 
Methods inherited from interface org.ehcache.Cache
clear, containsKey, get, getAll, getRuntimeConfiguration, put, putAll, putIfAbsent, remove, remove, removeAll, replace, replace
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

destroy

void destroy()
             throws CachePersistenceException
Destroys all persistent data structures for this PersistentUserManagedCache.

Throws:
java.lang.IllegalStateException - if state MAINTENANCE couldn't be reached
CachePersistenceException - if the persistent data cannot be destroyed