|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>
Represents a Cache that is not managed by a CacheManager
, as such that needs to
have close()
invoked in order to release all its resources.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.ehcache.Cache |
---|
Cache.Entry<K,V> |
Method Summary | |
---|---|
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 . |
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 |
---|
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
state
StateTransitionException
- 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 encountered
java.lang.RuntimeException
- if any exception is thrown, like from ListenersStatus getStatus()
Status
for this CacheManager
Status
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |