|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMemoryCache
For the framework. Insures methods a MemoryCache needs to access.
Method Summary | |
---|---|
void |
dispose()
Destroy the memory cache |
int |
freeElements(int numberToFree)
This instructs the memory cache to remove the numberToFree according to its eviction policy. |
ICacheElement |
get(java.io.Serializable key)
Get an item from the cache |
ICompositeCacheAttributes |
getCacheAttributes()
Returns the CacheAttributes for the region. |
CompositeCache |
getCompositeCache()
Gets the cache hub / region that uses the MemoryCache. |
java.util.Set |
getGroupKeys(java.lang.String group)
Gets the set of keys of objects currently in the group. |
java.util.Iterator |
getIterator()
Get an iterator for all elements in the memory cache. |
java.lang.Object[] |
getKeyArray()
Get an Array of the keys for all elements in the memory cache. |
java.util.Map |
getMultiple(java.util.Set keys)
Gets multiple items from the cache based on the given set of keys. |
ICacheElement |
getQuiet(java.io.Serializable key)
Get an item from the cache without effecting its order or last access time |
int |
getSize()
Get the number of elements contained in the memory store |
IStats |
getStatistics()
Returns the historical and statistical data for a region's memory cache. |
void |
initialize(CompositeCache cache)
Initialize the memory cache |
boolean |
remove(java.io.Serializable key)
Removes an item from the cache |
void |
removeAll()
Removes all cached items from the cache. |
void |
setCacheAttributes(ICompositeCacheAttributes cattr)
Sets the CacheAttributes of the region. |
void |
update(ICacheElement ce)
Puts an item to the cache. |
void |
waterfal(ICacheElement ce)
Spools the item contained in the provided element to disk |
Method Detail |
---|
void initialize(CompositeCache cache)
cache
- The cache (region) this memory store is attached to.void dispose() throws java.io.IOException
java.io.IOException
int getSize()
IStats getStatistics()
java.util.Iterator getIterator()
java.lang.Object[] getKeyArray()
boolean remove(java.io.Serializable key) throws java.io.IOException
key
- Identifies item to be removed
java.io.IOException
- Description of the Exceptionvoid removeAll() throws java.io.IOException
java.io.IOException
- Description of the Exceptionint freeElements(int numberToFree) throws java.io.IOException
numberToFree
-
java.io.IOException
ICacheElement get(java.io.Serializable key) throws java.io.IOException
key
- Description of the Parameter
java.io.IOException
- Description of the Exceptionjava.util.Map getMultiple(java.util.Set keys) throws java.io.IOException
keys
-
java.io.IOException
ICacheElement getQuiet(java.io.Serializable key) throws java.io.IOException
key
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid waterfal(ICacheElement ce) throws java.io.IOException
ce
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid update(ICacheElement ce) throws java.io.IOException
ce
- Description of the Parameter
java.io.IOException
- Description of the ExceptionICompositeCacheAttributes getCacheAttributes()
void setCacheAttributes(ICompositeCacheAttributes cattr)
cattr
- The new cacheAttributes valueCompositeCache getCompositeCache()
java.util.Set getGroupKeys(java.lang.String group)
group
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |