org.apache.activemq.memory
Class CacheEvictionUsageListener

java.lang.Object
  extended by org.apache.activemq.memory.CacheEvictionUsageListener
All Implemented Interfaces:
UsageListener

public class CacheEvictionUsageListener
extends Object
implements UsageListener


Constructor Summary
CacheEvictionUsageListener(Usage usage, int usageHighMark, int usageLowMark, TaskRunnerFactory taskRunnerFactory)
           
 
Method Summary
 void add(CacheEvictor evictor)
           
 void onUsageChanged(Usage usage, int oldPercentUsage, int newPercentUsage)
           
 void remove(CacheEvictor evictor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEvictionUsageListener

public CacheEvictionUsageListener(Usage usage,
                                  int usageHighMark,
                                  int usageLowMark,
                                  TaskRunnerFactory taskRunnerFactory)
Method Detail

onUsageChanged

public void onUsageChanged(Usage usage,
                           int oldPercentUsage,
                           int newPercentUsage)
Specified by:
onUsageChanged in interface UsageListener

add

public void add(CacheEvictor evictor)

remove

public void remove(CacheEvictor evictor)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.