Package io.helidon.integrations.eureka
Class EurekaRegistrationConfig.BuilderBase<BUILDER extends EurekaRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends EurekaRegistrationConfig>
java.lang.Object
io.helidon.integrations.eureka.EurekaRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
EurekaRegistrationConfig.Builder
- Enclosing interface:
EurekaRegistrationConfig
public abstract static class EurekaRegistrationConfig.BuilderBase<BUILDER extends EurekaRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends EurekaRegistrationConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
EurekaRegistrationServerFeature.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.clientBuilderSupplier(Http1ClientConfig.Builder clientBuilderSupplier) AnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.clientBuilderSupplier(Supplier<? extends Http1ClientConfig.Builder> clientBuilderSupplier) AnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.config()If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).booleanenabled()Whether this feature will be enabled.enabled(boolean enabled) Whether this feature will be enabled.from(EurekaRegistrationConfig prototype) Update this builder from an existing prototype instance.from(EurekaRegistrationConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.AnInstanceInfoConfigdescribing the service instance to be registered.instanceInfo(InstanceInfoConfig instanceInfo) AnInstanceInfoConfigdescribing the service instance to be registered.instanceInfo(Consumer<InstanceInfoConfig.Builder> consumer) AnInstanceInfoConfigdescribing the service instance to be registered.instanceInfo(Supplier<? extends InstanceInfoConfig> supplier) AnInstanceInfoConfigdescribing the service instance to be registered.AJsonBuilderFactoryused for working with JSON internally; the default value is normally entirely suitable.jsonBuilderFactory(JsonBuilderFactory jsonBuilderFactory) AJsonBuilderFactoryused for working with JSON internally; the default value is normally entirely suitable.name()The non-nullname of this instance; "eureka" is a default value.The non-nullname of this instance; "eureka" is a default value.protected voidHandles providers and decorators.toString()protected voidValidates required properties.doubleweight()The (zero or positive) weight of this instance.weight(double weight) The (zero or positive) weight of this instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends EurekaRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends EurekaRegistrationConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends EurekaRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends EurekaRegistrationConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clientBuilderSupplier
public BUILDER clientBuilderSupplier(Supplier<? extends Http1ClientConfig.Builder> clientBuilderSupplier) AnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.An
Http1ClientConfigbuilt from the supplied builder must have itsHttpClientConfig.baseUri()property set to address a Eureka Server instance.- Parameters:
clientBuilderSupplier- anHttp1ClientConfig.Builder- Returns:
- updated builder instance
- See Also:
-
clientBuilderSupplier
AnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.An
Http1ClientConfigbuilt from the supplied builder must have itsHttpClientConfig.baseUri()property set to address a Eureka Server instance.- Parameters:
clientBuilderSupplier- anHttp1ClientConfig.Builder- Returns:
- updated builder instance
- See Also:
-
instanceInfo
AnInstanceInfoConfigdescribing the service instance to be registered.- Parameters:
instanceInfo- theInstanceInfoConfigdescribing the service instance to be registered- Returns:
- updated builder instance
- See Also:
-
instanceInfo
AnInstanceInfoConfigdescribing the service instance to be registered.- Parameters:
consumer- consumer of builder for theInstanceInfoConfigdescribing the service instance to be registered- Returns:
- updated builder instance
- See Also:
-
instanceInfo
AnInstanceInfoConfigdescribing the service instance to be registered.- Parameters:
supplier- supplier of theInstanceInfoConfigdescribing the service instance to be registered- Returns:
- updated builder instance
- See Also:
-
jsonBuilderFactory
AJsonBuilderFactoryused for working with JSON internally; the default value is normally entirely suitable.- Parameters:
jsonBuilderFactory- aJsonBuilderFactory- Returns:
- updated builder instance
- See Also:
-
enabled
Whether this feature will be enabled.- Parameters:
enabled- whether this feature will be enabled- Returns:
- updated builder instance
- See Also:
-
name
The non-nullname of this instance; "eureka" is a default value.- Parameters:
name- the non-nullname of this instance; "eureka" is a default value- Returns:
- updated builder instance
- See Also:
-
weight
The (zero or positive) weight of this instance.- Parameters:
weight- the (zero or positive) weight of this instance- Returns:
- updated builder instance
- See Also:
-
clientBuilderSupplier
AnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.An
Http1ClientConfigbuilt from the supplied builder must have itsHttpClientConfig.baseUri()property set to address a Eureka Server instance.- Returns:
- the client builder supplier
-
instanceInfo
AnInstanceInfoConfigdescribing the service instance to be registered.- Returns:
- the instance info
- See Also:
-
jsonBuilderFactory
AJsonBuilderFactoryused for working with JSON internally; the default value is normally entirely suitable.- Returns:
- the json builder factory
-
enabled
public boolean enabled()Whether this feature will be enabled.- Returns:
- the enabled
-
name
The non-nullname of this instance; "eureka" is a default value.- Returns:
- the name
-
weight
public double weight()The (zero or positive) weight of this instance.- Returns:
- the weight
-
config
If this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-
config(io.helidon.config.Config)