|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface class for Cache implementations.
| Method Summary | |
void |
clear()
removes all objects from the cache |
java.lang.Object |
get(java.lang.String objectKey)
find a cached object |
java.lang.String |
getCacheDir()
returns the cache specific directory should be overridden by the specific cache implementation |
int |
getMaxCacheSize()
returns the maximum holding capacity of this cache instance |
java.util.Properties |
getProperties()
Return the characteristics of a specific implementation of IrisCache |
java.lang.String |
getType()
returns the identifier for this cache |
void |
invalidate(java.lang.String key)
recieve notification from an outside party (another server) that the object with the given key has been updated |
void |
put(java.lang.String objectKey,
java.lang.Object cacheObject)
store or replace an object in the cache |
java.lang.Object |
putMutable(java.lang.String objectKey,
java.lang.Object mutableObject)
Cache an object which we're going to write some output to |
void |
remove(java.lang.String objectKey)
remove an object from the cache. |
void |
setMaxCacheSize(int maxCacheSize)
setter for maximum capacity this cache can hold |
void |
setProperties(java.lang.String type,
java.util.Properties cacheProperties)
Set properties so that a specific cache can build its characteristics on its own. |
void |
setRefreshFreq(long refreshFrequency)
The default refresh period |
| Methods inherited from interface org.xmlecho.palomar.cron.Refreshable |
getNextRefreshTime, getRefreshInterval, getRunnable, isTimeToRefresh, refresh, willWantRefresh |
| Methods inherited from interface org.xmlecho.palomar.cron.Job |
getCronExpr, getJobGroupName, getJobName, runJob |
| Method Detail |
public java.lang.Object get(java.lang.String objectKey)
objectKey - the identifier used for lookup
null if not found
public void put(java.lang.String objectKey,
java.lang.Object cacheObject)
throws java.lang.Exception
cacheObject - the object we want to cacheobjectKey - the identifier we may use for lookup, later
java.lang.Exception
public java.lang.Object putMutable(java.lang.String objectKey,
java.lang.Object mutableObject)
throws java.lang.Exception
java.lang.Exception
public void remove(java.lang.String objectKey)
throws java.lang.Exception
objectKey - the identifier we used when storing the object
java.lang.Exceptionpublic void invalidate(java.lang.String key)
public void clear()
public void setProperties(java.lang.String type,
java.util.Properties cacheProperties)
type - the specific typecacheProperties - the characteristics of the specific typepublic java.util.Properties getProperties()
public void setRefreshFreq(long refreshFrequency)
public java.lang.String getType()
public java.lang.String getCacheDir()
public void setMaxCacheSize(int maxCacheSize)
public int getMaxCacheSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||