public interface Cache
Modifier and Type | Method and Description |
---|---|
void |
close()
Lets a cache know it will not be used any further and that it can release
acquired resources
|
java.lang.Object |
get(java.lang.Object key)
Gets an object that was previously
put into this object. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts an object into the cache.
|
java.lang.Object |
remove(java.lang.Object key)
Removes an object from the cache.
|
int |
size()
How big is the cache right now?
|
java.lang.Object get(java.lang.Object key)
put
into this object.msgid
- java.lang.Object put(java.lang.Object key, java.lang.Object value)
messageID
- message
- java.lang.Object remove(java.lang.Object key)
messageID
- void close()
int size()
Copyright © 2005-2017. All Rights Reserved.