|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.web.CachingManager
public class CachingManager
Title: Caching Manager
Description:
Copyright: Copyright (c) 2002
Company: Plumtree
Constructor Summary | |
---|---|
CachingManager()
Creates a new CachingManager object. |
Method Summary | |
---|---|
void |
Clear()
Remove all the elements in this cache manager. |
java.lang.Object |
GetEntry(java.lang.String key)
Get an Entry from this Cache. |
IXPEnumerator |
GetKeys()
An IXPEnumertor of all the keys contained in the caching manager. |
int |
GetMaxCount()
Get the max number of objects that can be placed on this cache. |
int |
GetMaxInactiveInterval()
Get the max inactive interval until this cache should timeout objects in the cache. |
java.lang.Object |
GetMostRecentlyAccessedObject()
Get the most recently accessed Object (by set or get). |
int |
GetNumItems()
Get the number of objects placed on this cache. |
long |
GetTimeStamp(java.lang.String key)
Get the time stamp of an Entry from this Cache. |
void |
RemoveEntry(java.lang.String key)
Remove an attribute from the caching manager. |
java.lang.String |
SetEntry(java.lang.Object value)
Place an object on the cache. |
void |
SetEntry(java.lang.String key,
java.lang.Object value)
Place an object on the cache based on a key. |
void |
SetEntry(java.lang.String key,
java.lang.Object value,
ICacheUpdateListener callback,
int timeout)
Set an attribute with a call back. |
void |
SetMaxCount(int maxCount)
Set the max number of objects that can be placed into this cache. |
void |
SetMaxInactiveInterval(int updateInterval)
Have this caching manager timeout objects after x number of seconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingManager()
Method Detail |
---|
public void Clear()
public java.lang.Object GetEntry(java.lang.String key)
key
- Key to look up the value to return.
public IXPEnumerator GetKeys()
public int GetMaxCount()
SetMaxCount
public int GetNumItems()
public int GetMaxInactiveInterval()
public java.lang.Object GetMostRecentlyAccessedObject()
public long GetTimeStamp(java.lang.String key)
key
- Key to look up the value to return.
public void RemoveEntry(java.lang.String key)
key
- The key to remove.public java.lang.String SetEntry(java.lang.Object value)
value
- The value interested in storing in the cache.
public void SetEntry(java.lang.String key, java.lang.Object value)
key
- The key to place the value under.value
- The value interested in storing on the cache.public void SetEntry(java.lang.String key, java.lang.Object value, ICacheUpdateListener callback, int timeout)
key
- Key on the cachevalue
- The value to place on the cache.callback
- Object to call back when time has elapsed.timeout
- Time in seconds before calling the callback.public void SetMaxCount(int maxCount)
maxCount
- The max number of objects this cache can hold.public void SetMaxInactiveInterval(int updateInterval)
updateInterval
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |