public class ExpiringMap<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
限定符和类型 | 类和说明 |
---|---|
class |
ExpiringMap.Expirer |
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_EXPIRATION_INTERVAL |
static int |
DEFAULT_TIME_TO_LIVE |
构造器和说明 |
---|
ExpiringMap() |
ExpiringMap(int timeToLive) |
ExpiringMap(int timeToLive,
int expirationInterval) |
限定符和类型 | 方法和说明 |
---|---|
void |
addExpirationListener(ExpirationListener<? extends V> listener) |
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object obj) |
V |
get(java.lang.Object key) |
int |
getExpirationInterval() |
ExpiringMap.Expirer |
getExpirer() |
int |
getTimeToLive() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> inMap) |
V |
remove(java.lang.Object key) |
void |
removeExpirationListener(ExpirationListener<? extends V> listener) |
void |
setExpirationInterval(int expirationInterval) |
void |
setTimeToLive(int timeToLive) |
int |
size() |
java.util.Collection<V> |
values() |
public static final int DEFAULT_TIME_TO_LIVE
public static final int DEFAULT_EXPIRATION_INTERVAL
public ExpiringMap()
public ExpiringMap(int timeToLive)
public ExpiringMap(int timeToLive, int expirationInterval)
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public int hashCode()
public boolean equals(java.lang.Object obj)
public void addExpirationListener(ExpirationListener<? extends V> listener)
public void removeExpirationListener(ExpirationListener<? extends V> listener)
public ExpiringMap.Expirer getExpirer()
public int getExpirationInterval()
public int getTimeToLive()
public void setExpirationInterval(int expirationInterval)
public void setTimeToLive(int timeToLive)