org.apache.activemq.usage
Class TempUsage

java.lang.Object
  extended by org.apache.activemq.usage.Usage<TempUsage>
      extended by org.apache.activemq.usage.TempUsage
All Implemented Interfaces:
Service

public class TempUsage
extends Usage<TempUsage>

Used to keep track of how much of something is being used so that a productive working set usage can be controlled. Main use case is manage memory usage.


Field Summary
 
Fields inherited from class org.apache.activemq.usage.Usage
name, parent, percentUsage, usageMutex
 
Constructor Summary
TempUsage()
           
TempUsage(String name, PListStore store)
           
TempUsage(TempUsage parent, String name)
           
 
Method Summary
 PListStore getStore()
           
protected  long retrieveUsage()
           
 void setStore(PListStore store)
           
 
Methods inherited from class org.apache.activemq.usage.Usage
addChild, addUsageListener, caclPercentUsage, getExecutor, getLimit, getLimiter, getName, getParent, getPercentUsage, getPercentUsageMinDelta, getPollingTime, getUsage, getUsagePortion, isFull, isFull, notifyCallbackWhenNotFull, onLimitChange, removeChild, removeUsageListener, setExecutor, setLimit, setLimiter, setName, setParent, setPercentUsage, setPercentUsageMinDelta, setPollingTime, setUsagePortion, start, stop, toString, waitForSpace, waitForSpace, waitForSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TempUsage

public TempUsage()

TempUsage

public TempUsage(String name,
                 PListStore store)

TempUsage

public TempUsage(TempUsage parent,
                 String name)
Method Detail

retrieveUsage

protected long retrieveUsage()
Specified by:
retrieveUsage in class Usage<TempUsage>

getStore

public PListStore getStore()

setStore

public void setStore(PListStore store)


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