Constructor and Description |
---|
ExpirationCache(int maxSize,
long defaultExpirationTime) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
int |
getMaxCacheSize() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
V |
put(K key,
V value,
long expirationTime) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
void |
setDefaultExpirationTime(long defaultExpirationTime) |
void |
setMaxCacheSize(int maxCacheSize) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public void setDefaultExpirationTime(long defaultExpirationTime)
public int getMaxCacheSize()
getMaxCacheSize
in interface Cache<K,V>
public void setMaxCacheSize(int maxCacheSize)
setMaxCacheSize
in interface Cache<K,V>
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
Copyright © 2016. All rights reserved.