java.lang.Object
io.sf.jclf.util.ObjectCache
Abstract class for Object caches
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()Closes this cache.abstract voidinit(Properties p) abstract DatedContainer<String> abstract StringlookupString(String ip) voidput(String ip, DatedContainer<String> dc) abstract voidabstract voidsetExpireTime(long t) Sets the cache entry expire time.
-
Constructor Details
-
ObjectCache
public ObjectCache()
-
-
Method Details
-
init
- Throws:
CacheException
-
lookupString
-
lookup
-
put
-
put
-
setExpireTime
public abstract void setExpireTime(long t) Sets the cache entry expire time.- Parameters:
t- the time in seconds.
-
close
Closes this cache.- Throws:
CacheException- if a problem arose when attempting to close.
-