|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
com.softwareag.xbd.extension.CacheController
This cache controller controls resouces up to timelimit. When the timelimit is reached, the resource is removed from internal cache. A get request starts a new timelimit.
Nested Class Summary | |
static interface |
CacheController.Event
Interface for controller events |
static interface |
CacheController.Interface
Interface for timeout notification. |
Constructor Summary | |
CacheController()
|
|
CacheController(CacheController.Interface i)
|
|
CacheController(CacheController.Interface i,
int nonActivityTimeout)
|
|
CacheController(CacheController.Interface i,
java.lang.String nonActivityTimeout)
|
Method Summary | |
void |
close()
Close and release the cache controller. |
void |
doStop()
Stop the controller worker thread. |
protected void |
finalize()
|
java.lang.Object |
get(java.lang.Object key)
Get a object from a key. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Put to control a new object with special key. |
java.lang.Object |
remove(java.lang.Object key)
Remove object with key. |
void |
run()
Worker thread main function |
void |
setIntervall(long millis)
|
void |
setNonActivityTimeout(int value)
|
void |
setNonActivityTimeout(java.lang.String value)
|
void |
setNotifyer(CacheController.Event e)
|
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CacheController()
public CacheController(CacheController.Interface i)
public CacheController(CacheController.Interface i, int nonActivityTimeout)
public CacheController(CacheController.Interface i, java.lang.String nonActivityTimeout)
Method Detail |
public void setNonActivityTimeout(int value)
public void setNonActivityTimeout(java.lang.String value)
public void setNotifyer(CacheController.Event e)
public void setIntervall(long millis)
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
public void run()
run
in interface java.lang.Runnable
public void doStop()
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |