Class MemoryManager
java.lang.Object
org.apache.activemq.artemis.core.server.MemoryManager
- All Implemented Interfaces:
ActiveMQComponent
A memory usage watcher.
This class will run a thread monitoring memory usage and log warnings in case we are low on memory.
-
Constructor Details
-
MemoryManager
public MemoryManager(int memoryWarningThreshold, long measureInterval)
-
-
Method Details
-
isMemoryLow
public boolean isMemoryLow() -
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
start
public void start()- Specified by:
startin interfaceActiveMQComponent
-
stop
public void stop()- Specified by:
stopin interfaceActiveMQComponent
-