Package org.ehcache
Interface PersistentUserManagedCache<K,V>
- Type Parameters:
K- the key type for the cacheV- the value type for the cache
- All Superinterfaces:
AutoCloseable,Cache<K,,V> Closeable,Iterable<Cache.Entry<K,,V>> 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
Modifier and TypeMethodDescriptionvoiddestroy()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, replaceMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.ehcache.UserManagedCache
close, getStatus, init
-
Method Details
-
destroy
Destroys all persistent data structures for thisPersistentUserManagedCache.- Throws:
IllegalStateException- if stateMAINTENANCEcouldn't be reachedCachePersistenceException- if the persistent data cannot be destroyed
-