Package org.eclipse.jetty.server
Class LowResourceMonitor.MemoryLowResourceCheck
java.lang.Object
org.eclipse.jetty.server.LowResourceMonitor.MemoryLowResourceCheck
- All Implemented Interfaces:
LowResourceMonitor.LowResourceCheck
- Enclosing class:
- LowResourceMonitor
public class LowResourceMonitor.MemoryLowResourceCheck
extends Object
implements LowResourceMonitor.LowResourceCheck
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MemoryLowResourceCheck
public MemoryLowResourceCheck(long maxMemory)
-
-
Method Details
-
isLowOnResources
public boolean isLowOnResources()- Specified by:
isLowOnResources
in interfaceLowResourceMonitor.LowResourceCheck
-
getMaxMemory
public long getMaxMemory() -
setMaxMemory
public void setMaxMemory(long maxMemoryBytes) - Parameters:
maxMemoryBytes
- The maximum memory in bytes in use before low resources is triggered.
-
getReason
- Specified by:
getReason
in interfaceLowResourceMonitor.LowResourceCheck
-
toString
-