|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
For the framework. Insures methods a MemoryCache needs to access.
| Field Summary |
| Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
| Method Summary | |
java.io.Serializable |
get(java.io.Serializable key)
Description of the Method |
java.io.Serializable |
get(java.io.Serializable key,
boolean container)
Description of the Method |
ICompositeCacheAttributes |
getCacheAttributes()
Returns the CacheAttributes. |
CompositeCache |
getCompositeCache()
Gets the cache hub / region taht the MemoryCache is used by |
java.util.Iterator |
getIterator()
Deprecated. |
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()
Gets the size attribute of the IMemoryCache object |
void |
initialize(java.lang.String cacheName,
ICompositeCacheAttributes cattr,
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. |
void |
update(ICacheElement ce)
Puts an item to the cache. |
void |
waterfal(ICacheElement ce)
Throws an item out of memory, if there is a disk cache it will be spooled. |
| Methods inherited from interface org.apache.jcs.engine.behavior.ICacheType |
getCacheType |
| Method Detail |
public void initialize(java.lang.String cacheName,
ICompositeCacheAttributes cattr,
CompositeCache cache)
cacheName - Description of the Parametercattr - Description of the Parametercache - Description of the Parameterpublic int getSize()
public java.util.Iterator getIterator()
public java.lang.Object[] getKeyArray()
public boolean remove(java.io.Serializable key)
throws java.io.IOException
key - Description of the Parameter
java.io.IOException - Description of the Exception
public void removeAll()
throws java.io.IOException
java.io.IOException - Description of the Exception
public java.io.Serializable get(java.io.Serializable key)
throws java.io.IOException
key - Description of the Parameter
java.io.IOException - Description of the Exception
public ICacheElement getQuiet(java.io.Serializable key)
throws java.io.IOException
key - Description of the Parameter
java.io.IOException - Description of the Exception
public java.io.Serializable get(java.io.Serializable key,
boolean container)
throws java.io.IOException
key - Description of the Parametercontainer - Description of the Parameter
java.io.IOException - Description of the Exception
public void waterfal(ICacheElement ce)
throws java.io.IOException
ce - Description of the Parameter
java.io.IOException - Description of the Exception
public void update(ICacheElement ce)
throws java.io.IOException
ce - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic ICompositeCacheAttributes getCacheAttributes()
public void setCacheAttributes(ICompositeCacheAttributes cattr)
cattr - The new cacheAttributes valuepublic CompositeCache getCompositeCache()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||