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
- 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
removedpublic boolean wakeUpNow()
public boolean changeDelay(int delay) throws IllegalArgumentException
IllegalArgumentException
public int getDelay()
public boolean stop()
public boolean isRunning()
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.