|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICacheAccess
ICacheAccess defines the behavior for client access.
| Method Summary | |
|---|---|
void |
destroy()
Deprecated. |
void |
destroy(java.lang.Object name)
Deprecated. |
int |
freeMemoryElements(int numberToFree)
This instructs the memory cache to remove the numberToFree according to its eviction policy. |
java.lang.Object |
get(java.lang.Object name)
Basic get method. |
ICompositeCacheAttributes |
getCacheAttributes()
Gets the ICompositeCacheAttributes of the cache region |
IElementAttributes |
getElementAttributes()
GetElementAttributes will return an attribute object describing the current attributes associated with the object name. |
IElementAttributes |
getElementAttributes(java.lang.Object name)
Gets the elementAttributes attribute of the ICacheAccess object |
void |
put(java.lang.Object name,
java.lang.Object obj)
Puts and/or overides an element with the name in that region. |
void |
put(java.lang.Object name,
java.lang.Object obj,
IElementAttributes attr)
Description of the Method |
void |
putSafe(java.lang.Object name,
java.lang.Object obj)
Puts in cache if an item does not exist with the name in that region. |
void |
remove()
Old remove all method. |
void |
remove(java.lang.Object name)
Remove an object for this key if one exists, else do nothing. |
void |
resetElementAttributes(IElementAttributes attr)
ResetAttributes allows for some of the attributes of a region to be reset in particular expiration time attriubtes, time to live, default time to live and idle time, and event handlers. |
void |
resetElementAttributes(java.lang.Object name,
IElementAttributes attr)
Reset the attributes on the object matching this key name. |
void |
setCacheAttributes(ICompositeCacheAttributes cattr)
Sets the ICompositeCacheAttributes of the cache region |
| Method Detail |
|---|
java.lang.Object get(java.lang.Object name)
name -
void putSafe(java.lang.Object name,
java.lang.Object obj)
throws CacheException
name - obj -
CacheException
void put(java.lang.Object name,
java.lang.Object obj)
throws CacheException
name - obj -
CacheException
void put(java.lang.Object name,
java.lang.Object obj,
IElementAttributes attr)
throws CacheException
name - obj - attr -
CacheException
void destroy()
throws CacheException
CacheExceptionremove()
void remove()
throws CacheException
CacheException
void destroy(java.lang.Object name)
throws CacheException
name -
CacheExceptionremove()
void remove(java.lang.Object name)
throws CacheException
name -
CacheException
void resetElementAttributes(IElementAttributes attr)
throws CacheException
attr -
CacheException
void resetElementAttributes(java.lang.Object name,
IElementAttributes attr)
throws CacheException
name - attr -
CacheException
IElementAttributes getElementAttributes()
throws CacheException
CacheException
IElementAttributes getElementAttributes(java.lang.Object name)
throws CacheException
name -
CacheExceptionICompositeCacheAttributes getCacheAttributes()
void setCacheAttributes(ICompositeCacheAttributes cattr)
cattr - The new ICompositeCacheAttribute value
int freeMemoryElements(int numberToFree)
throws CacheException
numberToFree -
CacheException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||