public class CacheManager extends Object
| Constructor and Description |
|---|
CacheManager(ManageableCache cache,
int cacheMaxSize,
int delay)
A new cacheManager will be started on the given ManageableCache object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeDelay(int delay) |
int |
getDelay() |
boolean |
isRunning() |
boolean |
stop()
Gracefully stop cacheManager.
|
boolean |
wakeUpNow()
To wake cacheManager up at will.
|
public CacheManager(ManageableCache cache, int cacheMaxSize, int delay)
cache - Manageable cache which can be managed by this cache manager.cacheMaxSize - Maximum size of the cache. If the cache exceeds this size, LRU values will be
removeddelay - Cache delay.public boolean wakeUpNow()
public boolean changeDelay(int delay)
public int getDelay()
public boolean stop()
public boolean isRunning()
Copyright © 2021 WSO2. All rights reserved.