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 java.lang.Object implements LowResourceMonitor.LowResourceCheck
-
-
Constructor Summary
Constructors Constructor Description MemoryLowResourceCheck(long maxMemory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMaxMemory()
java.lang.String
getReason()
boolean
isLowOnResources()
void
setMaxMemory(long maxMemoryBytes)
java.lang.String
toString()
-
-
-
Method Detail
-
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
public java.lang.String getReason()
- Specified by:
getReason
in interfaceLowResourceMonitor.LowResourceCheck
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-