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") @Deprecated(since="2021-05-27") public class LowResourceMonitor.MaxConnectionsLowResourceCheck extends Object implements LowResourceMonitor.LowResourceCheck
Deprecated.
  • Constructor Details

    • MaxConnectionsLowResourceCheck

      public MaxConnectionsLowResourceCheck(int maxConnections)
      Deprecated.
  • 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 public void setMaxConnections(int maxConnections)
      Deprecated.
      Replaced by ConnectionLimit
      Parameters:
      maxConnections - The maximum connections before low resources state is triggered
    • isLowOnResources

      public boolean isLowOnResources()
      Deprecated.
      Specified by:
      isLowOnResources in interface LowResourceMonitor.LowResourceCheck
    • getReason

      public String getReason()
      Deprecated.
      Specified by:
      getReason in interface LowResourceMonitor.LowResourceCheck
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object