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 Object
implements LowResourceMonitor.LowResourceCheck
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Replaced by ConnectionLimitbooleanvoidsetMaxConnections(int maxConnections) Deprecated.Replaced by ConnectionLimittoString()
-
Field Details
-
reason
-
maxConnections
private int maxConnections
-
-
Constructor Details
-
MaxConnectionsLowResourceCheck
public MaxConnectionsLowResourceCheck(int maxConnections)
-
-
Method Details
-
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.Replaced by ConnectionLimit- Parameters:
maxConnections- The maximum connections before low resources state is triggered
-
isLowOnResources
public boolean isLowOnResources()- Specified by:
isLowOnResourcesin interfaceLowResourceMonitor.LowResourceCheck
-
getReason
- Specified by:
getReasonin interfaceLowResourceMonitor.LowResourceCheck
-
toString
-