Class LimitsFeatureConfig.BuilderBase.LimitsFeatureConfigImpl
java.lang.Object
io.helidon.webserver.concurrency.limits.LimitsFeatureConfig.BuilderBase.LimitsFeatureConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<LimitsFeature>
,LimitsFeatureConfig
,Supplier<LimitsFeature>
- Enclosing class:
LimitsFeatureConfig.BuilderBase<BUILDER extends LimitsFeatureConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LimitsFeatureConfig>
protected static class LimitsFeatureConfig.BuilderBase.LimitsFeatureConfigImpl
extends Object
implements LimitsFeatureConfig, Supplier<LimitsFeature>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.concurrency.limits.LimitsFeatureConfig
LimitsFeatureConfig.Builder, LimitsFeatureConfig.BuilderBase<BUILDER extends LimitsFeatureConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LimitsFeatureConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LimitsFeatureConfigImpl
(LimitsFeatureConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new instance of the runtime type from this config object.Concurrency limit to use to limit concurrent execution of incoming requests.boolean
enabled()
Whether this feature is enabled, defaults totrue
.boolean
get()
int
hashCode()
name()
Name of this instance.sockets()
List of sockets to register this feature on.toString()
double
weight()
Weight of the context feature.
-
Constructor Details
-
LimitsFeatureConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<LimitsFeature>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<LimitsFeature>
-
weight
public double weight()Description copied from interface:LimitsFeatureConfig
Weight of the context feature. As it is used by other features, the default is quite high: 2000.0.- Specified by:
weight
in interfaceLimitsFeatureConfig
- Returns:
- weight of the feature
-
sockets
Description copied from interface:LimitsFeatureConfig
List of sockets to register this feature on. If empty, it would get registered on all sockets.- Specified by:
sockets
in interfaceLimitsFeatureConfig
- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
Description copied from interface:LimitsFeatureConfig
Name of this instance.- Specified by:
name
in interfaceLimitsFeatureConfig
- Returns:
- instance name
-
concurrencyLimit
Description copied from interface:LimitsFeatureConfig
Concurrency limit to use to limit concurrent execution of incoming requests. The default is to have unlimited concurrency.- Specified by:
concurrencyLimit
in interfaceLimitsFeatureConfig
- Returns:
- concurrency limit
-
enabled
public boolean enabled()Description copied from interface:LimitsFeatureConfig
Whether this feature is enabled, defaults totrue
.- Specified by:
enabled
in interfaceLimitsFeatureConfig
- Returns:
- whether to enable this feature
-
toString
-
equals
-
hashCode
public int hashCode()
-