|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlecho.palomar.cache.AbstractCache
org.xmlecho.palomar.cache.DumbCache
A simple cache -- Objects placed here survive for the life of the VM unless explicitly removed
| Field Summary |
| Fields inherited from class org.xmlecho.palomar.cache.AbstractCache |
_type, lastRefreshTime, refreshFrequency |
| Constructor Summary | |
DumbCache()
instantiates a new cache |
|
| Method Summary | |
void |
clear()
remover all objects in the cache |
java.lang.Object |
get(java.lang.String objectKey)
find a cached object |
java.util.Properties |
getProperties()
Return the characteristics of a specific implementation of IrisCache |
java.lang.Runnable |
getRunnable()
|
void |
invalidate(java.lang.String objectKey)
recieve notification of update event |
boolean |
isTimeToRefresh()
always returns false. |
void |
put(java.lang.String objectKey,
java.lang.Object cacheObject)
inserts or replaces an object in the cache |
java.lang.Object |
putMutable(java.lang.String objectKey,
java.lang.Object mutableObject)
Cache an object we're going to write some output to |
void |
refresh()
|
void |
remove(java.lang.String objectKey)
remove a single object from the cache |
void |
setProperties(java.lang.String type,
java.util.Properties myProperties)
DumbCache doesn't make any use of these properties |
boolean |
willWantRefresh()
from Refreshable |
| Methods inherited from class org.xmlecho.palomar.cache.AbstractCache |
getCacheDir, getCronExpr, getJobGroupName, getJobName, getKeys, getMaxCacheSize, getNextRefreshTime, getObjects, getRefreshFreq, getRefreshInterval, getType, isEmpty, runJob, setMaxCacheSize, setRefreshFreq, setRefreshTime, setType, shouldNotify, trimProperties |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DumbCache()
| Method Detail |
public java.lang.Object get(java.lang.String objectKey)
Cache
objectKey - the String key
objectKey or
null
public void put(java.lang.String objectKey,
java.lang.Object cacheObject)
objectKey - the identifier we'll use to find the objectcacheObject - the object we're want to store
public java.lang.Object putMutable(java.lang.String objectKey,
java.lang.Object mutableObject)
public void clear()
public void invalidate(java.lang.String objectKey)
public void remove(java.lang.String objectKey)
objectKey - the identifier we used when storing the object
public void setProperties(java.lang.String type,
java.util.Properties myProperties)
type - the specific typemyProperties - the characteristics of the specific typepublic java.util.Properties getProperties()
Cache
getProperties in interface CachegetProperties in class AbstractCachepublic boolean willWantRefresh()
public void refresh()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isTimeToRefresh()
isTimeToRefresh in interface org.xmlecho.palomar.cron.RefreshableisTimeToRefresh in class AbstractCachepublic java.lang.Runnable getRunnable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||