public class AgeOutCache<K>
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
AgeOutCache.Handler<K> |
构造器和说明 |
---|
AgeOutCache(TimeScheduler timer,
long timeout) |
AgeOutCache(TimeScheduler timer,
long timeout,
AgeOutCache.Handler handler) |
限定符和类型 | 方法和说明 |
---|---|
void |
add(K key) |
void |
clear() |
boolean |
contains(K key) |
AgeOutCache.Handler |
getHandler() |
long |
getTimeout() |
void |
remove(K key) |
void |
removeAll(java.util.Collection<K> keys) |
void |
setHandler(AgeOutCache.Handler handler) |
void |
setTimeout(long timeout) |
int |
size() |
java.lang.String |
toString() |
public AgeOutCache(TimeScheduler timer, long timeout)
public AgeOutCache(TimeScheduler timer, long timeout, AgeOutCache.Handler handler)
public long getTimeout()
public void setTimeout(long timeout)
public AgeOutCache.Handler getHandler()
public void setHandler(AgeOutCache.Handler handler)
public void add(K key)
public boolean contains(K key)
public void remove(K key)
public void removeAll(java.util.Collection<K> keys)
public void clear()
public int size()
public java.lang.String toString()
toString
在类中 java.lang.Object