Class StuckThreadDetectionConfig.BuilderBase.StuckThreadDetectionConfigImpl
java.lang.Object
io.helidon.webserver.StuckThreadDetectionConfig.BuilderBase.StuckThreadDetectionConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<StuckThreadDetectionFeature>, StuckThreadDetectionConfig, Supplier<StuckThreadDetectionFeature>
- Enclosing class:
StuckThreadDetectionConfig.BuilderBase<BUILDER extends StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends StuckThreadDetectionConfig>
protected static class StuckThreadDetectionConfig.BuilderBase.StuckThreadDetectionConfigImpl
extends Object
implements StuckThreadDetectionConfig, Supplier<StuckThreadDetectionFeature>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface StuckThreadDetectionConfig
StuckThreadDetectionConfig.Builder, StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forStuckThreadDetectionFeature.static classStuckThreadDetectionConfig.BuilderBase<BUILDER extends StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends StuckThreadDetectionConfig>Fluent API builder base forStuckThreadDetectionConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.Period between scans of executing request threads.booleanenabled()Whether this feature is enabled.booleanget()inthashCode()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.toString()doubleweight()Weight of the feature.
-
Constructor Details
-
StuckThreadDetectionConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<StuckThreadDetectionFeature>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<StuckThreadDetectionFeature>
-
enabled
public boolean enabled()Description copied from interface:StuckThreadDetectionConfigWhether this feature is enabled.- Specified by:
enabledin interfaceStuckThreadDetectionConfig- Returns:
- whether enabled, defaults to
true
-
threshold
Description copied from interface:StuckThreadDetectionConfigMinimum time a request must be executing before its thread is reported as stuck. The duration must be positive and representable in nanoseconds.- Specified by:
thresholdin interfaceStuckThreadDetectionConfig- Returns:
- stuck request threshold, defaults to 10 minutes
-
checkPeriod
Description copied from interface:StuckThreadDetectionConfigPeriod between scans of executing request threads. A request becomes eligible afterStuckThreadDetectionConfig.threshold()and is reported on the next scan. The duration must be positive and representable in nanoseconds.- Specified by:
checkPeriodin interfaceStuckThreadDetectionConfig- Returns:
- check period, defaults to 1 minute
-
weight
public double weight()Description copied from interface:StuckThreadDetectionConfigWeight of the feature.- Specified by:
weightin interfaceStuckThreadDetectionConfig- Returns:
- feature weight
-
sockets
Description copied from interface:StuckThreadDetectionConfigList of sockets to register this feature on. If empty, the feature is registered on all sockets.- Specified by:
socketsin interfaceStuckThreadDetectionConfig- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
Description copied from interface:StuckThreadDetectionConfigName of this feature instance.- Specified by:
namein interfaceStuckThreadDetectionConfig- Returns:
- instance name
-
toString
-
equals
-
hashCode
-