|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
K - the key type for the cacheV - the value type for the cachepublic interface UserManagedCache<K,V>
Represents a Cache that is not managed by a CacheManager.
These caches must be closed in order to release all their resources.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ehcache.Cache |
|---|
Cache.Entry<K,V> |
| Method Summary | |
|---|---|
void |
close()
Transitions this UserManagedCache to UNINITIALIZED. |
Status |
getStatus()
Returns the current Status of this UserManagedCache. |
void |
init()
Transitions this UserManagedCache to 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()
throws StateTransitionException
UserManagedCache to AVAILABLE.
If an error occurs before the UserManagedCache is AVAILABLE, it will revert to
UNINITIALIZED and attempt to properly release all resources.
java.lang.IllegalStateException - if the UserManagedCache is not UNINITIALIZED
StateTransitionException - if the UserManagedCache could not be made AVAILABLE
void close()
throws StateTransitionException
UserManagedCache to UNINITIALIZED.
This will release all resources held by this cache.
Failure to release a resource will not prevent other resources from being released.
close in interface java.io.CloseableStateTransitionException - if the UserManagedCache could not reach UNINITIALIZED cleanly
java.lang.IllegalStateException - if the UserManagedCache is not AVAILABLEStatus getStatus()
Status of this UserManagedCache.
Status
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||