Package org.ehcache
Interface PersistentUserManagedCache<K,V>
-
- Type Parameters:
K- the key type for the cacheV- the value type for the cache
- All Superinterfaces:
java.lang.AutoCloseable,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>
AUserManagedCachethat 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroys all persistent data structures for thisPersistentUserManagedCache.-
Methods inherited from interface org.ehcache.Cache
clear, containsKey, get, getAll, getRuntimeConfiguration, iterator, put, putAll, putIfAbsent, remove, remove, removeAll, replace, replace
-
Methods inherited from interface org.ehcache.UserManagedCache
close, getStatus, init
-
-
-
-
Method Detail
-
destroy
void destroy() throws CachePersistenceExceptionDestroys all persistent data structures for thisPersistentUserManagedCache.- Throws:
java.lang.IllegalStateException- if stateMAINTENANCEcouldn't be reachedCachePersistenceException- if the persistent data cannot be destroyed
-
-