Package org.apache.activemq.memory
Class MapCache
java.lang.Object
org.apache.activemq.memory.MapCache
- All Implemented Interfaces:
Cache
Use any Map to implement the Cache. No cache eviction going on here. Just gives
a Map a Cache interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Lets a cache know it will not be used any further and that it can release acquired resourcesGets an object that was previouslyputinto this object.Puts an object into the cache.Removes an object from the cache.intsize()How big is the cache right now?
-
Field Details
-
map
-
-
Constructor Details
-
MapCache
public MapCache() -
MapCache
-
-
Method Details
-
put
Description copied from interface:CachePuts an object into the cache. -
get
Description copied from interface:CacheGets an object that was previouslyputinto this object. -
remove
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 -
size
public int size()Description copied from interface:CacheHow big is the cache right now?
-