org.apache.activemq.memory
Class CacheEvictionUsageListener
java.lang.Object
org.apache.activemq.memory.CacheEvictionUsageListener
- All Implemented Interfaces:
- UsageListener
public class CacheEvictionUsageListener
- extends Object
- implements UsageListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheEvictionUsageListener
public CacheEvictionUsageListener(UsageManager usageManager,
int usageHighMark,
int usageLowMark,
TaskRunnerFactory taskRunnerFactory)
onMemoryUseChanged
public void onMemoryUseChanged(UsageManager memoryManager,
int oldPercentUsage,
int newPercentUsage)
- Specified by:
onMemoryUseChanged
in interface UsageListener
add
public void add(CacheEvictor evictor)
remove
public void remove(CacheEvictor evictor)
Copyright © 2011 Apache Software Foundation. All Rights Reserved.