|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMemoryCache<K extends Serializable,V extends Serializable>
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<K,V> |
get(K key)
Get an item from the cache |
ICompositeCacheAttributes |
getCacheAttributes()
Returns the CacheAttributes for the region. |
CompositeCache<K,V> |
getCompositeCache()
Gets the cache hub / region that uses the MemoryCache. |
Set<K> |
getGroupKeys(String group)
Gets the set of keys of objects currently in the group. |
Set<String> |
getGroupNames()
Gets the set of group names in the cache |
Iterator<Map.Entry<K,MemoryElementDescriptor<K,V>>> |
getIterator()
Get an iterator for all elements in the memory cache. |
Set<K> |
getKeySet()
Get a set of the keys for all elements in the memory cache. |
Map<K,ICacheElement<K,V>> |
getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys. |
ICacheElement<K,V> |
getQuiet(K 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<K,V> cache)
Initialize the memory cache |
boolean |
remove(K 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<K,V> ce)
Puts an item to the cache. |
void |
waterfal(ICacheElement<K,V> ce)
Spools the item contained in the provided element to disk |
| Method Detail |
|---|
void initialize(CompositeCache<K,V> cache)
cache - The cache (region) this memory store is attached to.
void dispose()
throws IOException
IOExceptionint getSize()
IStats getStatistics()
Iterator<Map.Entry<K,MemoryElementDescriptor<K,V>>> getIterator()
Set<K> getKeySet()
boolean remove(K key)
throws IOException
key - Identifies item to be removed
IOException - Description of the Exception
void removeAll()
throws IOException
IOException - Description of the Exception
int freeElements(int numberToFree)
throws IOException
numberToFree -
IOException
ICacheElement<K,V> get(K key)
throws IOException
key - Description of the Parameter
IOException - Description of the Exception
Map<K,ICacheElement<K,V>> getMultiple(Set<K> keys)
throws IOException
keys -
IOException
ICacheElement<K,V> getQuiet(K key)
throws IOException
key - Description of the Parameter
IOException - Description of the Exception
void waterfal(ICacheElement<K,V> ce)
throws IOException
ce - Description of the Parameter
IOException - Description of the Exception
void update(ICacheElement<K,V> ce)
throws IOException
ce - Description of the Parameter
IOException - Description of the ExceptionICompositeCacheAttributes getCacheAttributes()
void setCacheAttributes(ICompositeCacheAttributes cattr)
cattr - The new cacheAttributes valueCompositeCache<K,V> getCompositeCache()
Set<K> getGroupKeys(String group)
group -
Set<String> getGroupNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||