public class StoreUsage extends PercentLimitUsage<StoreUsage>
percentLimit| Constructor and Description |
|---|
StoreUsage() |
StoreUsage(StoreUsage parent,
String name) |
StoreUsage(String name,
PersistenceAdapter store) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPercentUsage() |
PersistenceAdapter |
getStore() |
protected long |
retrieveUsage() |
void |
setStore(PersistenceAdapter store) |
protected void |
updateLimitBasedOnPercent() |
boolean |
waitForSpace(long timeout,
int highWaterMark) |
getPercentLimit, setPercentLimitaddChild, addUsageListener, caclPercentUsage, getExecutor, getLimit, getLimiter, getName, getNumUsageListeners, getParent, getPercentUsageMinDelta, getPollingTime, getUsage, getUsagePortion, isFull, isFull, isStarted, notifyCallbackWhenNotFull, onLimitChange, removeChild, removeUsageListener, setExecutor, setLimit, setLimiter, setName, setParent, setPercentUsage, setPercentUsageMinDelta, setPollingTime, setUsagePortion, start, stop, toString, waitForSpace, waitForSpacepublic StoreUsage()
public StoreUsage(String name, PersistenceAdapter store)
public StoreUsage(StoreUsage parent, String name)
protected long retrieveUsage()
retrieveUsage in class org.apache.activemq.usage.Usage<StoreUsage>public PersistenceAdapter getStore()
public void setStore(PersistenceAdapter store)
public int getPercentUsage()
getPercentUsage in class org.apache.activemq.usage.Usage<StoreUsage>public boolean waitForSpace(long timeout, int highWaterMark) throws InterruptedException
waitForSpace in class org.apache.activemq.usage.Usage<StoreUsage>InterruptedExceptionprotected void updateLimitBasedOnPercent()
updateLimitBasedOnPercent in class PercentLimitUsage<StoreUsage>Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.