|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.certificatevalidation.cache.CacheManager
public class CacheManager
Cache Manager takes care and maintains an LRU cache which implements ManageableCache Interface. CAUTION!! If CacheManager is too much involved with the cache, other threads will be affected.
| Constructor Summary | |
|---|---|
CacheManager(ManageableCache cache,
int cacheMaxSize,
int delay)
A new cacheManager will be started on the given ManageableCache object. |
|
| Method Summary | |
|---|---|
boolean |
changeDelay(int delay)
|
int |
getDelay()
|
boolean |
isRunning()
|
boolean |
stop()
Gracefully stop cacheManager. |
boolean |
wakeUpNow()
To wake cacheManager up at will. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheManager(ManageableCache cache,
int cacheMaxSize,
int delay)
cache - a Manageable Cache which could be managed by this cache manager.cacheMaxSize - Maximum size of the cache. If the cache exceeds this size, LRU values will be
removed| Method Detail |
|---|
public boolean wakeUpNow()
public boolean changeDelay(int delay)
throws IllegalArgumentException
IllegalArgumentExceptionpublic int getDelay()
public boolean stop()
public boolean isRunning()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||