Interface StuckThreadDetectionConfig

All Superinterfaces:
Prototype.Api, Prototype.Factory<StuckThreadDetectionFeature>
All Known Implementing Classes:
StuckThreadDetectionConfig.BuilderBase.StuckThreadDetectionConfigImpl

public interface StuckThreadDetectionConfig extends Prototype.Api
Configuration of the stuck thread detection feature.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static StuckThreadDetectionConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static StuckThreadDetectionConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • enabled

      boolean enabled()
      Whether this feature is enabled.
      Returns:
      whether enabled, defaults to true
    • threshold

      Duration threshold()
      Minimum time a request must be executing before its thread is reported as stuck. The duration must be positive and representable in nanoseconds.
      Returns:
      stuck request threshold, defaults to 10 minutes
    • checkPeriod

      Duration checkPeriod()
      Period between scans of executing request threads. A request becomes eligible after threshold() and is reported on the next scan. The duration must be positive and representable in nanoseconds.
      Returns:
      check period, defaults to 1 minute
    • weight

      double weight()
      Weight of the feature.
      Returns:
      feature weight
    • sockets

      Set<String> sockets()
      List of sockets to register this feature on. If empty, the feature is registered on all sockets.
      Returns:
      socket names to register on, defaults to empty (all available sockets)
    • name

      String name()
      Name of this feature instance.
      Returns:
      instance name