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
ConstructorsModifierConstructorDescriptionprotectedLimitsFeatureConfigImpl(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.booleanenabled()Whether this feature is enabled, defaults totrue.booleanget()inthashCode()name()Name of this instance.sockets()List of sockets to register this feature on.toString()doubleweight()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.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<LimitsFeature>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<LimitsFeature>
-
weight
public double weight()Description copied from interface:LimitsFeatureConfigWeight of the context feature. As it is used by other features, the default is quite high: 2000.0.- Specified by:
weightin interfaceLimitsFeatureConfig- Returns:
- weight of the feature
-
sockets
Description copied from interface:LimitsFeatureConfigList of sockets to register this feature on. If empty, it would get registered on all sockets.- Specified by:
socketsin interfaceLimitsFeatureConfig- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
Description copied from interface:LimitsFeatureConfigName of this instance.- Specified by:
namein interfaceLimitsFeatureConfig- Returns:
- instance name
-
concurrencyLimit
Description copied from interface:LimitsFeatureConfigConcurrency limit to use to limit concurrent execution of incoming requests. The default is to have unlimited concurrency.- Specified by:
concurrencyLimitin interfaceLimitsFeatureConfig- Returns:
- concurrency limit
-
enabled
public boolean enabled()Description copied from interface:LimitsFeatureConfigWhether this feature is enabled, defaults totrue.- Specified by:
enabledin interfaceLimitsFeatureConfig- Returns:
- whether to enable this feature
-
toString
-
equals
-
hashCode
public int hashCode()
-