K - the Key typeV - the Value typepublic interface SelfExpiringMap<K,V> extends Map<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
put(K key,
V value,
long lifeTimeMillis)
Associates the given key to the given value in this map, with the specified life times in milliseconds.
|
boolean |
renewKey(K key)
Renews the specified key, setting the life time to the initial value.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesboolean renewKey(K key)
key - Copyright © 2016. All rights reserved.