Class ExpirableCache<K,V>
java.lang.Object
edu.internet2.middleware.grouperClient.util.ExpirableCache<K,V>
edu.internet2.middleware.subject.util.ExpirableCache<K,V>
- Type Parameters:
K
- key typeV
- value type
- All Implemented Interfaces:
Serializable
Deprecated.
use edu.internet2.middleware.grouperClient.util.ExpirableCache
This is like a map, but the setters also take an expire time which
will mean the items in the cache will be automatically deleted.
Also, every so often (e.g. 2 minutes) all items are checked for expiration.
If no timetolive is set, it will default to 1 day. The max time to live is
one day.
This is synchronized so that all access is safe.
Note, evictions are check for periodically, but only when the map is accessed (and even then only every few minutes).
so you can check for evictions externally, or clear the map if you are done with it.
- Version:
- $Id$
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClient.util.ExpirableCache
ExpirableCache.ExpirableCacheUnit
-
Constructor Summary
ConstructorDescriptionDeprecated.ExpirableCache
(int defaultTimeToLiveInMinutes) Deprecated.ExpirableCache
(ExpirableCache.ExpirableCacheUnit expirableCacheUnit, int defaultTimeToLive) Deprecated. -
Method Summary
Methods inherited from class edu.internet2.middleware.grouperClient.util.ExpirableCache
checkForEvictions, clear, clearAll, clearCache, get, getCacheEvictions, getCacheHits, getCacheInserts, getDefaultTimeToLiveInMillis, keySet, notifyDatabaseOfChanges, put, put, registerDatabaseClearableCache, size, staticToString, toString
-
Constructor Details
-
ExpirableCache
public ExpirableCache()Deprecated. -
ExpirableCache
Deprecated. -
ExpirableCache
public ExpirableCache(int defaultTimeToLiveInMinutes) Deprecated.
-