Package org.eclipse.jetty.server
Class LowResourceMonitor.MaxConnectionsLowResourceCheck
- java.lang.Object
-
- org.eclipse.jetty.server.LowResourceMonitor.MaxConnectionsLowResourceCheck
-
- All Implemented Interfaces:
LowResourceMonitor.LowResourceCheck
- Enclosing class:
- LowResourceMonitor
@ManagedObject("Check max allowed connections on connectors") public class LowResourceMonitor.MaxConnectionsLowResourceCheck extends java.lang.Object implements LowResourceMonitor.LowResourceCheck
-
-
Constructor Summary
Constructors Constructor Description MaxConnectionsLowResourceCheck(int maxConnections)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getMaxConnections()
Deprecated.Replaced by ConnectionLimitjava.lang.String
getReason()
boolean
isLowOnResources()
void
setMaxConnections(int maxConnections)
Deprecated.Replaced by ConnectionLimitjava.lang.String
toString()
-
-
-
Method Detail
-
getMaxConnections
@ManagedAttribute("The maximum connections allowed for the monitored connectors before low resource handling is activated") @Deprecated public int getMaxConnections()
Deprecated.Replaced by ConnectionLimit- Returns:
- The maximum connections allowed for the monitored connectors before low resource handling is activated
-
setMaxConnections
@Deprecated public void setMaxConnections(int maxConnections)
Deprecated.Replaced by ConnectionLimit- Parameters:
maxConnections
- The maximum connections before low resources state is triggered
-
isLowOnResources
public boolean isLowOnResources()
- Specified by:
isLowOnResources
in interfaceLowResourceMonitor.LowResourceCheck
-
getReason
public java.lang.String getReason()
- Specified by:
getReason
in interfaceLowResourceMonitor.LowResourceCheck
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-