Class StuckThreadDetectionConfig.BuilderBase<BUILDER extends StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends StuckThreadDetectionConfig>
java.lang.Object
io.helidon.webserver.StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
StuckThreadDetectionConfig.Builder
- Enclosing interface:
StuckThreadDetectionConfig
public abstract static class StuckThreadDetectionConfig.BuilderBase<BUILDER extends StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends StuckThreadDetectionConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
StuckThreadDetectionConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSockets(Set<String> sockets) List of sockets to register this feature on.Period between scans of executing request threads.checkPeriod(Duration checkPeriod) Period between scans of executing request threads.Clear all sockets.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanenabled()Whether this feature is enabled.enabled(boolean enabled) Whether this feature is enabled.from(StuckThreadDetectionConfig prototype) Update this builder from an existing prototype instance.from(StuckThreadDetectionConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of this feature instance.Name of this feature instance.protected voidHandles providers and decorators.sockets()List of sockets to register this feature on.List of sockets to register this feature on.Minimum time a request must be executing before its thread is reported as stuck.Minimum time a request must be executing before its thread is reported as stuck.toString()protected voidValidates required properties.doubleweight()Weight of the feature.weight(double weight) Weight of the feature.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends StuckThreadDetectionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends StuckThreadDetectionConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
Whether this feature is enabled.- Parameters:
enabled- whether enabled, defaults totrue- Returns:
- updated builder instance
- See Also:
-
threshold
Minimum time a request must be executing before its thread is reported as stuck. The duration must be positive and representable in nanoseconds.- Parameters:
threshold- stuck request threshold, defaults to 10 minutes- Returns:
- updated builder instance
- See Also:
-
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.- Parameters:
checkPeriod- check period, defaults to 1 minute- Returns:
- updated builder instance
- See Also:
-
weight
Weight of the feature.- Parameters:
weight- feature weight- Returns:
- updated builder instance
- See Also:
-
clearSockets
-
sockets
-
addSockets
-
name
-
enabled
public boolean enabled()Whether this feature is enabled.- Returns:
- whether enabled, defaults to
true
-
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
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
public double weight()Weight of the feature.- Returns:
- feature weight
-
sockets
-
name
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-