com.raritantechnologies.utils.time
Class TimedCacheObject

java.lang.Object
  extended bycom.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

Constructor Summary
TimedCacheObject(long cacheInterval)
           
 
Method Summary
 java.lang.Object getCacheObject()
           
 void setCacheObject(java.lang.Object object)
           
 boolean shouldCacheObject()
           
 boolean shouldCacheObject(java.util.Map currentParams)
          Determines if the current parameters should be cached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedCacheObject

public TimedCacheObject(long cacheInterval)
Method Detail

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()