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>
- 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 class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnHttp1ClientConfig.Builder
used to build an internal client for communicating with a Eureka server.clientBuilderSupplier
(Http1ClientConfig.Builder clientBuilderSupplier) AnHttp1ClientConfig.Builder
used to build an internal client for communicating with a Eureka server.clientBuilderSupplier
(Supplier<? extends Http1ClientConfig.Builder> clientBuilderSupplier) AnHttp1ClientConfig.Builder
used to build an internal client for communicating with a Eureka server.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).boolean
enabled()
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.AnInstanceInfoConfig
describing the service instance to be registered.instanceInfo
(InstanceInfoConfig instanceInfo) AnInstanceInfoConfig
describing the service instance to be registered.instanceInfo
(Consumer<InstanceInfoConfig.Builder> consumer) AnInstanceInfoConfig
describing the service instance to be registered.instanceInfo
(Supplier<? extends InstanceInfoConfig> supplier) AnInstanceInfoConfig
describing the service instance to be registered.AJsonBuilderFactory
used for working with JSON internally; the default value is normally entirely suitable.jsonBuilderFactory
(JsonBuilderFactory jsonBuilderFactory) AJsonBuilderFactory
used for working with JSON internally; the default value is normally entirely suitable.name()
The non-null
name of this instance; "eureka" is a default value.The non-null
name of this instance; "eureka" is a default value.protected void
Handles providers and decorators.toString()
protected void
Validates required properties.double
weight()
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, wait
Methods 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
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in 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.Builder
used to build an internal client for communicating with a Eureka server.An
Http1ClientConfig
built from the supplied builder must have itsHttpClientConfigBlueprint.baseUri()
property set to address a Eureka Server instance.- Parameters:
clientBuilderSupplier
- anHttp1ClientConfig.Builder
- Returns:
- updated builder instance
- See Also:
-
clientBuilderSupplier
AnHttp1ClientConfig.Builder
used to build an internal client for communicating with a Eureka server.An
Http1ClientConfig
built from the supplied builder must have itsHttpClientConfigBlueprint.baseUri()
property set to address a Eureka Server instance.- Parameters:
clientBuilderSupplier
- anHttp1ClientConfig.Builder
- Returns:
- updated builder instance
- See Also:
-
instanceInfo
AnInstanceInfoConfig
describing the service instance to be registered.- Parameters:
instanceInfo
- theInstanceInfoConfig
describing the service instance to be registered- Returns:
- updated builder instance
- See Also:
-
instanceInfo
AnInstanceInfoConfig
describing the service instance to be registered.- Parameters:
consumer
- consumer of builder for theInstanceInfoConfig
describing the service instance to be registered- Returns:
- updated builder instance
- See Also:
-
instanceInfo
AnInstanceInfoConfig
describing the service instance to be registered.- Parameters:
supplier
- supplier of theInstanceInfoConfig
describing the service instance to be registered- Returns:
- updated builder instance
- See Also:
-
jsonBuilderFactory
AJsonBuilderFactory
used 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-null
name of this instance; "eureka" is a default value.- Parameters:
name
- the non-null
name 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.Builder
used to build an internal client for communicating with a Eureka server.An
Http1ClientConfig
built from the supplied builder must have itsHttpClientConfigBlueprint.baseUri()
property set to address a Eureka Server instance.- Returns:
- the client builder supplier
-
instanceInfo
AnInstanceInfoConfig
describing the service instance to be registered.- Returns:
- the instance info
- See Also:
-
jsonBuilderFactory
AJsonBuilderFactory
used 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-null
name 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.
-