public class AgeOutCache<K>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AgeOutCache.Handler<K> |
Constructor and Description |
---|
AgeOutCache(TimeScheduler timer,
long timeout) |
AgeOutCache(TimeScheduler timer,
long timeout,
AgeOutCache.Handler handler) |
Modifier and Type | Method and Description |
---|---|
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
in class java.lang.Object
Copyright © 1998-2020 Red Hat. All Rights Reserved.