public class CacheManager
extends java.lang.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 java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getDelay()
public boolean stop()
public boolean isRunning()
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.