|
||||||||||
| 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. |
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.IOExceptionint 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 Exception
void removeAll()
throws java.io.IOException
java.io.IOException - Description of the Exception
int 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 Exception
ICacheElement getQuiet(java.io.Serializable key)
throws java.io.IOException
key - Description of the Parameter
java.io.IOException - Description of the Exception
void waterfal(ICacheElement ce)
throws java.io.IOException
ce - Description of the Parameter
java.io.IOException - Description of the Exception
void 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 | |||||||||