java.lang.Object
io.sf.jclf.util.ObjectCache
Abstract class for Object caches
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
Closes this cache.abstract void
init
(Properties p) abstract DatedContainer<String>
abstract String
lookupString
(String ip) void
put
(String ip, DatedContainer<String> dc) abstract void
abstract void
setExpireTime
(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.
-