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
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 Summary
ConstructorDescriptionExpirableValue
(T theContent, long theTimeToLiveInCacheMillis) Makes an expirable value with max 1 day time to live -
Method Summary
-
Constructor Details
-
ExpirableValue
Makes an expirable value with max 1 day time to live- Parameters:
theContent
- content to storetheTimeToLiveInCacheMillis
- number of millis the items should stay in cache. this cannot be longer than 1 day
-