K
- the type of the keys used to access data within this cacheV
- the type of the values held within this cachepublic interface UserManagedCache<K,V> extends Cache<K,V>
CacheManager
, as such that needs to
have close()
invoked in order to release all its resources.Cache.Entry<K,V>
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases all data held in this UserManagedCache.
|
Status |
getStatus()
Returns the current
Status for this CacheManager |
void |
init()
Attempts at having this UserManagedCache go to
Status.AVAILABLE . |
clear, containsKey, get, getAll, getRuntimeConfiguration, put, putAll, putIfAbsent, remove, remove, removeAll, replace, replace
void init()
Status.AVAILABLE
.
Should this throw, while the UserManagedCache isn't yet Status.AVAILABLE
, it will try to go back
to Status.UNINITIALIZED
properly.
java.lang.IllegalStateException
- if the UserManagedCache isn't in Status.UNINITIALIZED
stateStateTransitionException
- if the UserManagedCache couldn't be made Status.AVAILABLE
java.lang.RuntimeException
- if any exception is thrown, but still results in the UserManagedCache transitioning to Status.AVAILABLE
void close()
Should this throw, while the UserManagedCache isn't yet Status.UNINITIALIZED
, it will keep on
trying to go to Status.UNINITIALIZED
properly.
StateTransitionException
- if the UserManagedCache couldn't be cleanly made
Status.UNINITIALIZED
,
wrapping the first exception encounteredjava.lang.RuntimeException
- if any exception is thrown, like from Listeners