|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<MultiKey,GcDbQueryCache>
edu.internet2.middleware.grouperClient.jdbc.GcDbQueryCacheMap
public class GcDbQueryCacheMap
Map for caching some query results for x amount of time. This map checks itself every X minutes and evicts expired content.
Nested Class Summary | |
---|---|
class |
GcDbQueryCacheMap.Janitor
Associated thread to call get every once in a while to ensure that eviction happens. |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
GcDbQueryCacheMap()
Constructor. |
Method Summary | |
---|---|
GcDbQueryCache |
get(java.lang.Object key)
Return the object if it is not expired and if it exists. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public GcDbQueryCacheMap()
Method Detail |
---|
public GcDbQueryCache get(java.lang.Object key)
get
in interface java.util.Map<MultiKey,GcDbQueryCache>
get
in class java.util.HashMap<MultiKey,GcDbQueryCache>
HashMap.get(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |