Interface LimitsFeatureConfig
- All Superinterfaces:
Prototype.Api, Prototype.Factory<LimitsFeature>
- All Known Implementing Classes:
LimitsFeatureConfig.BuilderBase.LimitsFeatureConfigImpl
Interface generated from blueprint
io.helidon.webserver.concurrency.limits.LimitsFeatureConfigBlueprint. Please add javadoc to blueprint, as it is currently missing.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forLimitsFeature.static classLimitsFeatureConfig.BuilderBase<BUILDER extends LimitsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends LimitsFeatureConfig>Fluent API builder base forLimitsFeatureConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic LimitsFeatureConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static LimitsFeatureConfig.Builderbuilder(LimitsFeatureConfig instance) Create a new fluent API builder from an existing instance.Concurrency limit to use to limit concurrent execution of incoming requests.static LimitsFeatureConfigcreate()Create a new instance with default values.static LimitsFeatureConfigCreate a new instance from configuration.booleanenabled()Whether this feature is enabled, defaults totrue.name()Name of this instance.sockets()List of sockets to register this feature on.doubleweight()Weight of the context 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
-
weight
double weight()Weight of the context feature. As it is used by other features, the default is quite high: 2000.0.- Returns:
- weight of the feature
-
sockets
-
name
-
concurrencyLimit
-
enabled
boolean enabled()Whether this feature is enabled, defaults totrue.- Returns:
- whether to enable this feature
-