Class MemoryManager
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.MemoryManager
-
- All Implemented Interfaces:
ActiveMQComponent
public class MemoryManager extends Object implements 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 Summary
Constructors Constructor Description MemoryManager(int memoryWarningThreshold, long measureInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMemoryLow()booleanisStarted()voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Method Detail
-
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
-
-