|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectCache
Interface Helma object cache classes need to implement.
Method Summary | |
---|---|
boolean |
clear()
Removes all items currently stored in the cache. |
boolean |
containsKey(java.lang.Object key)
Returns true if the collection contains an element for the key. |
int |
containsKeys(java.lang.Object[] keys)
Returns the number of keys in object array keys that
were not found in the Map. |
java.lang.Object |
get(java.lang.Object key)
Gets the object associated with the specified key in the hashtable. |
java.lang.Object[] |
getCachedObjects()
Return an array with all objects currently contained in the cache. |
void |
init(Application app)
Set the Application instance
for the cache. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts the specified element into the hashtable, using the specified key. |
java.lang.Object |
remove(java.lang.Object key)
Removes the element corresponding to the key. |
void |
shutdown()
Called when the application holding the cache is stopped. |
int |
size()
Return the number of objects currently stored in the cache. |
void |
updateProperties(java.util.Properties props)
Called when the application's properties have been updated to let the cache implementation update its settings. |
Method Detail |
---|
void init(Application app)
Application
instance
for the cache.
app
- the app instancevoid shutdown()
void updateProperties(java.util.Properties props)
props
- boolean containsKey(java.lang.Object key)
key
- the key that we are looking forint containsKeys(java.lang.Object[] keys)
keys
that
were not found in the Map.
Those keys that are contained in the Map are nulled out in the array.
keys
- an array of key objects we are looking forcontainsKey(java.lang.Object)
java.lang.Object get(java.lang.Object key)
key
- the specified key
put(java.lang.Object, java.lang.Object)
java.lang.Object put(java.lang.Object key, java.lang.Object value)
key
- the specified key in the hashtablevalue
- the specified element
java.lang.NullPointerException
- If the value of the element
is equal to null.get(java.lang.Object)
java.lang.Object remove(java.lang.Object key)
key
- the key that needs to be removed
boolean clear()
int size()
java.lang.Object[] getCachedObjects()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |