Interface LimitsFeatureConfig
- All Superinterfaces:
Prototype.Api
,Prototype.Factory<LimitsFeature>
- All Known Implementing Classes:
LimitsFeatureConfig.BuilderBase.LimitsFeatureConfigImpl
Interface generated from definition. Please add javadoc to the definition interface.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forLimitsFeature
.static class
LimitsFeatureConfig.BuilderBase<BUILDER extends LimitsFeatureConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LimitsFeatureConfig> Fluent API builder base forLimitsFeature
. -
Method Summary
Modifier and TypeMethodDescriptionstatic LimitsFeatureConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static LimitsFeatureConfig.Builder
builder
(LimitsFeatureConfig instance) Create a new fluent API builder from an existing instance.Concurrency limit to use to limit concurrent execution of incoming requests.static LimitsFeatureConfig
create()
Create a new instance with default values.static LimitsFeatureConfig
Create a new instance from configuration.boolean
enabled()
Whether this feature is enabled, defaults totrue
.name()
Name of this instance.sockets()
List of sockets to register this feature on.double
weight()
Weight of the context feature.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
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
List of sockets to register this feature on. If empty, it would get registered on all sockets.- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
String name()Name of this instance.- Returns:
- instance name
-
concurrencyLimit
Concurrency limit to use to limit concurrent execution of incoming requests. The default is to have unlimited concurrency.- Returns:
- concurrency limit
-
enabled
boolean enabled()Whether this feature is enabled, defaults totrue
.- Returns:
- whether to enable this feature
-