|
||||||||||
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(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. |
Set |
getGroupKeys(String group)
Gets the set of keys of objects currently in the group. |
Iterator |
getIterator()
Get an iterator for all elements in the memory cache. |
Object[] |
getKeyArray()
Get an Array of the keys for all elements in the memory cache. |
Map |
getMultiple(Set keys)
Gets multiple items from the cache based on the given set of keys. |
ICacheElement |
getQuiet(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(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 IOException
IOException
int getSize()
IStats getStatistics()
Iterator getIterator()
Object[] getKeyArray()
boolean remove(Serializable key) throws IOException
key
- Identifies item to be removed
IOException
- Description of the Exceptionvoid removeAll() throws IOException
IOException
- Description of the Exceptionint freeElements(int numberToFree) throws IOException
numberToFree
-
IOException
ICacheElement get(Serializable key) throws IOException
key
- Description of the Parameter
IOException
- Description of the ExceptionMap getMultiple(Set keys) throws IOException
keys
-
IOException
ICacheElement getQuiet(Serializable key) throws IOException
key
- Description of the Parameter
IOException
- Description of the Exceptionvoid waterfal(ICacheElement ce) throws IOException
ce
- Description of the Parameter
IOException
- Description of the Exceptionvoid update(ICacheElement ce) throws IOException
ce
- Description of the Parameter
IOException
- Description of the ExceptionICompositeCacheAttributes getCacheAttributes()
void setCacheAttributes(ICompositeCacheAttributes cattr)
cattr
- The new cacheAttributes valueCompositeCache getCompositeCache()
Set getGroupKeys(String group)
group
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |