Package step.grid
Class ExpiringMap<T,V>
- java.lang.Object
-
- step.grid.ExpiringMap<T,V>
-
-
Constructor Summary
Constructors Constructor Description ExpiringMap(long keepaliveTimeout)ExpiringMap(long keepaliveTimeout, long checkIntervalMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleanclose()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<T,V>>entrySet()Vget(Object key)booleanisClosed()booleanisEmpty()Set<T>keySet()Vput(T key, V value)voidputAll(Map<? extends T,? extends V> m)voidputOrTouch(T key, V value)Vremove(Object key)intsize()voidtouch(T key)Collection<V>values()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<T,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<T,V>
-
close
public boolean close()
- Specified by:
closein interfaceorg.jvnet.hk2.internal.Closeable
-
touch
public void touch(T key)
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceorg.jvnet.hk2.internal.Closeable
-
-