Module io.helidon.webserver.observe
Package io.helidon.webserver.observe
Class ObserveFeatureConfig.BuilderBase.ObserveFeatureConfigImpl
java.lang.Object
io.helidon.webserver.observe.ObserveFeatureConfig.BuilderBase.ObserveFeatureConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<ObserveFeature>,ObserveFeatureConfig,Supplier<ObserveFeature>
- Enclosing class:
ObserveFeatureConfig.BuilderBase<BUILDER extends ObserveFeatureConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ObserveFeatureConfig>
protected static class ObserveFeatureConfig.BuilderBase.ObserveFeatureConfigImpl
extends Object
implements ObserveFeatureConfig, Supplier<ObserveFeature>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.observe.ObserveFeatureConfig
ObserveFeatureConfig.Builder, ObserveFeatureConfig.BuilderBase<BUILDER extends ObserveFeatureConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ObserveFeatureConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObserveFeatureConfigImpl(ObserveFeatureConfig.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.config()Configuration of the observe feature, if present.cors()Cors support inherited by each observe provider, unless explicitly configured.booleanenabled()Whether the observe support is enabled.endpoint()Root endpoint to use for observe providers.booleanget()inthashCode()name()Name of this instance.Observers to use with this observe features.sockets()Sockets the observability endpoint should be exposed on.toString()doubleweight()Change the weight of this feature.
-
Constructor Details
-
ObserveFeatureConfigImpl
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<ObserveFeature>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<ObserveFeature>
-
cors
Description copied from interface:ObserveFeatureConfigCors support inherited by each observe provider, unless explicitly configured.- Specified by:
corsin interfaceObserveFeatureConfig- Returns:
- cors support to use
-
enabled
public boolean enabled()Description copied from interface:ObserveFeatureConfigWhether the observe support is enabled.- Specified by:
enabledin interfaceObserveFeatureConfig- Returns:
falseto disable observe feature
-
endpoint
Description copied from interface:ObserveFeatureConfigRoot endpoint to use for observe providers. By default, all observe endpoint are under this root endpoint.Example:
If root endpoint is/observe(the default), and default health endpoint ishealth(relative), health endpoint would be/observe/health.- Specified by:
endpointin interfaceObserveFeatureConfig- Returns:
- endpoint to use
-
weight
public double weight()Description copied from interface:ObserveFeatureConfigChange the weight of this feature. This may change the order of registration of this feature. By default, observability weight is 80.0 so it is registered after routing.- Specified by:
weightin interfaceObserveFeatureConfig- Returns:
- weight to use
-
observers
Description copied from interface:ObserveFeatureConfigObservers to use with this observe features. Each observer type is registered only once, unless it uses a custom name (default name is the same as the type).- Specified by:
observersin interfaceObserveFeatureConfig- Returns:
- list of observers to use in this feature
-
config
Description copied from interface:ObserveFeatureConfigConfiguration of the observe feature, if present.- Specified by:
configin interfaceObserveFeatureConfig- Returns:
- config node of the feature
-
sockets
Description copied from interface:ObserveFeatureConfigSockets the observability endpoint should be exposed on. If not defined, defaults to the default socket ("@default". Each observer may have its own configuration of sockets that are relevant to it, this only controls the endpoints!- Specified by:
socketsin interfaceObserveFeatureConfig- Returns:
- list of sockets to register observe endpoint on
-
name
Description copied from interface:ObserveFeatureConfigName of this instance.- Specified by:
namein interfaceObserveFeatureConfig- Returns:
- instance name
-
toString
-
equals
-
hashCode
public int hashCode()
-