public class TimeoutCache extends AbstractCache implements Runnable
| Constructor and Description |
|---|
TimeoutCache(String name,
int capacity,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Map<Object,Object> |
createMap(int initialCapacity,
float load) |
Object |
get(Object key) |
Object |
put(Object key,
Object value) |
Object |
remove(Object key) |
void |
run() |
clear, getSize, toStringpublic TimeoutCache(String name, int capacity, long timeout)
public void close()
protected Map<Object,Object> createMap(int initialCapacity, float load)
createMap in class AbstractCachepublic Object remove(Object key)
remove in interface Cacheremove in class AbstractCachepublic Object get(Object key)
get in interface Cacheget in class AbstractCacheCopyright © 2015. All Rights Reserved.