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 voidclose()Lets a cache know it will not be used any further and that it can release acquired resourcesObjectget(Object key)Gets an object that was previouslyputinto this object.Objectput(Object key, Object value)Puts an object into the cache.Objectremove(Object key)Removes an object from the cache.intsize()How big is the cache right now?
-
-
-
Method Detail
-
put
public Object put(Object key, Object value)
Description copied from interface:CachePuts an object into the cache.
-
get
public Object get(Object key)
Description copied from interface:CacheGets an object that was previouslyputinto this object.
-
remove
public Object remove(Object key)
Description copied from interface:CacheRemoves an object from the cache.
-
close
public void close()
Description copied from interface:CacheLets a cache know it will not be used any further and that it can release acquired resources
-
-