org.mentawai.cache
Class TimeoutCache
java.lang.Object
org.mentawai.cache.AbstractCache
org.mentawai.cache.TimeoutCache
- All Implemented Interfaces:
- Serializable, Runnable, Cache
public class TimeoutCache
- extends AbstractCache
- implements Runnable
- See Also:
- Serialized Form
TimeoutCache
public TimeoutCache(String name,
int capacity,
long timeout)
run
public void run()
- Specified by:
run in interface Runnable
close
public void close()
createMap
protected Map<Object,Object> createMap(int initialCapacity,
float load)
- Specified by:
createMap in class AbstractCache
remove
public Object remove(Object key)
- Specified by:
remove in interface Cache- Overrides:
remove in class AbstractCache
get
public Object get(Object key)
- Specified by:
get in interface Cache- Overrides:
get in class AbstractCache
put
public Object put(Object key,
Object value)
- Specified by:
put in interface Cache- Overrides:
put in class AbstractCache
Copyright © 2011. All Rights Reserved.