Class ExpirableValue<T>

java.lang.Object
edu.internet2.middleware.grouperClient.util.ExpirableValue<T>
Type Parameters:
T - is the type of the underlying content
All Implemented Interfaces:
Serializable

public class ExpirableValue<T> extends Object implements Serializable
This holds the actual value of the map, and the time it was inserted, and the time that it should last in the cache
Version:
$Id: ExpirableValue.java,v 1.1 2008-11-27 14:25:50 mchyzer Exp $
See Also:
  • Constructor Details

    • ExpirableValue

      public ExpirableValue(T theContent, long theTimeToLiveInCacheMillis)
      Makes an expirable value with max 1 day time to live
      Parameters:
      theContent - content to store
      theTimeToLiveInCacheMillis - number of millis the items should stay in cache. this cannot be longer than 1 day