Interface StuckThreadDetectionConfig
- All Superinterfaces:
Prototype.Api, Prototype.Factory<StuckThreadDetectionFeature>
- All Known Implementing Classes:
StuckThreadDetectionConfig.BuilderBase.StuckThreadDetectionConfigImpl
Configuration of the stuck thread detection feature.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forStuckThreadDetectionFeature.static classStuckThreadDetectionConfig.BuilderBase<BUILDER extends StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends StuckThreadDetectionConfig>Fluent API builder base forStuckThreadDetectionConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(StuckThreadDetectionConfig instance) Create a new fluent API builder from an existing instance.Period between scans of executing request threads.static StuckThreadDetectionConfigcreate()Create a new instance with default values.static StuckThreadDetectionConfigCreate a new instance from configuration.booleanenabled()Whether this feature is enabled.name()Name of this feature instance.sockets()List of sockets to register this feature on.Minimum time a request must be executing before its thread is reported as stuck.doubleweight()Weight of the feature.Methods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.
-
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
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
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 afterthreshold()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
-
name
-