Package org.apache.activemq.usage
Class JobSchedulerUsage
- java.lang.Object
-
- org.apache.activemq.usage.Usage<JobSchedulerUsage>
-
- org.apache.activemq.usage.JobSchedulerUsage
-
- All Implemented Interfaces:
Service
public class JobSchedulerUsage extends Usage<JobSchedulerUsage>
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, usageLock, waitForSpaceCondition
-
-
Constructor Summary
Constructors Constructor Description JobSchedulerUsage()
JobSchedulerUsage(String name, JobSchedulerStore store)
JobSchedulerUsage(JobSchedulerUsage parent, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobSchedulerStore
getStore()
protected long
retrieveUsage()
void
setStore(JobSchedulerStore store)
-
Methods inherited from class org.apache.activemq.usage.Usage
addChild, addUsageListener, caclPercentUsage, getExecutor, getLimit, getLimiter, getName, getNumUsageListeners, getParent, getPercentUsage, getPercentUsageMinDelta, getPollingTime, getUsage, getUsagePortion, isFull, isFull, isStarted, notifyCallbackWhenNotFull, onLimitChange, removeChild, removeUsageListener, setExecutor, setLimit, setLimiter, setName, setParent, setPercentUsage, setPercentUsageMinDelta, setPollingTime, setUsagePortion, start, stop, toString, waitForSpace, waitForSpace, waitForSpace
-
-
-
-
Constructor Detail
-
JobSchedulerUsage
public JobSchedulerUsage()
-
JobSchedulerUsage
public JobSchedulerUsage(String name, JobSchedulerStore store)
-
JobSchedulerUsage
public JobSchedulerUsage(JobSchedulerUsage parent, String name)
-
-
Method Detail
-
retrieveUsage
protected long retrieveUsage()
- Specified by:
retrieveUsage
in classUsage<JobSchedulerUsage>
-
getStore
public JobSchedulerStore getStore()
-
setStore
public void setStore(JobSchedulerStore store)
-
-