Package org.apache.activemq.memory
Class MapCache
- java.lang.Object
-
- org.apache.activemq.memory.MapCache
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Lets a cache know it will not be used any further and that it can release acquired resourcesObject
get(Object key)
Gets an object that was previouslyput
into this object.Object
put(Object key, Object value)
Puts an object into the cache.Object
remove(Object key)
Removes an object from the cache.int
size()
How big is the cache right now?
-
-
-
Method Detail
-
put
public Object put(Object key, Object value)
Description copied from interface:Cache
Puts an object into the cache.
-
get
public Object get(Object key)
Description copied from interface:Cache
Gets an object that was previouslyput
into this object.
-
remove
public Object remove(Object key)
Description copied from interface:Cache
Removes an object from the cache.
-
close
public void close()
Description copied from interface:Cache
Lets a cache know it will not be used any further and that it can release acquired resources
-
-