com.raritantechnologies.utils.time
Class TimedCacheObject
java.lang.Object
com.raritantechnologies.utils.time.TimedCacheObject
- public class TimedCacheObject
- extends java.lang.Object
Caches a set or parameter/value pairs for a specified interval or if the cached set of parameters
has changed.
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimedCacheObject
public TimedCacheObject(long cacheInterval)
shouldCacheObject
public boolean shouldCacheObject(java.util.Map currentParams)
- Determines if the current parameters should be cached. Returns true if any of the parameters
have changed since the last call to this method.
shouldCacheObject
public boolean shouldCacheObject()
setCacheObject
public void setCacheObject(java.lang.Object object)
getCacheObject
public java.lang.Object getCacheObject()