Class StuckThreadDetectionConfig.Builder
java.lang.Object
io.helidon.webserver.StuckThreadDetectionConfig.BuilderBase<StuckThreadDetectionConfig.Builder, StuckThreadDetectionConfig>
io.helidon.webserver.StuckThreadDetectionConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<StuckThreadDetectionConfig.Builder, StuckThreadDetectionConfig>, Builder<StuckThreadDetectionConfig.Builder, StuckThreadDetectionFeature>, ConfigBuilderSupport.ConfiguredBuilder<StuckThreadDetectionConfig.Builder, StuckThreadDetectionConfig>, Supplier<StuckThreadDetectionFeature>
- Enclosing interface:
StuckThreadDetectionConfig
public static class StuckThreadDetectionConfig.Builder
extends StuckThreadDetectionConfig.BuilderBase<StuckThreadDetectionConfig.Builder, StuckThreadDetectionConfig>
implements Builder<StuckThreadDetectionConfig.Builder, StuckThreadDetectionFeature>
Fluent API builder for
StuckThreadDetectionFeature.-
Nested Class Summary
Nested classes/interfaces inherited from class StuckThreadDetectionConfig.BuilderBase
StuckThreadDetectionConfig.BuilderBase.StuckThreadDetectionConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class StuckThreadDetectionConfig.BuilderBase
addSockets, checkPeriod, checkPeriod, clearSockets, config, config, enabled, enabled, from, from, name, name, preBuildPrototype, sockets, sockets, threshold, threshold, toString, validatePrototype, weight, weightModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault StuckThreadDetectionFeatureget()identity()Instance of this builder as the correct type.update(Consumer<StuckThreadDetectionConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
self
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<StuckThreadDetectionConfig.Builder, StuckThreadDetectionConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<StuckThreadDetectionConfig.Builder, StuckThreadDetectionFeature>- Returns:
- instance of the built type
-