public interface ExpiringState
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key)
Gets the given key.
|
Object |
putIfAbsent(String key,
Object value,
long ttl,
TimeUnit timeunit)
Puts an entry into this map with a given ttl (time to live) value
if the specified key is not already associated with a value.
|
Object |
remove(String key,
Object value)
Removes the given key.
|
Object putIfAbsent(String key, Object value, long ttl, TimeUnit timeunit)
key - key of the entryvalue - value of the entryttl - maximum time for this entry to stay in the maptimeunit - time unit for the ttlObject get(String key)
key - of the entryCopyright © 2014–2016. All rights reserved.