public class AgeOutCache<K>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AgeOutCache.Handler<K> |
Constructor and Description |
---|
AgeOutCache(java.util.concurrent.ScheduledExecutorService timer,
long timeout) |
AgeOutCache(java.util.concurrent.ScheduledExecutorService timer,
long timeout,
AgeOutCache.Handler handler) |
Modifier and Type | Method and Description |
---|---|
void |
add(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(java.util.concurrent.ScheduledExecutorService timer, long timeout)
public AgeOutCache(java.util.concurrent.ScheduledExecutorService 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 void remove(K key)
public void removeAll(java.util.Collection<K> keys)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.