Class EurekaDiscoveryConfig.BuilderBase<BUILDER extends EurekaDiscoveryConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends EurekaDiscoveryConfig>
- 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:
EurekaDiscoveryConfig.Builder
- Enclosing interface:
EurekaDiscoveryConfig
EurekaDiscovery
.-
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 TypeMethodDescriptioncache()
TheCacheConfig
to use controlling how a local cache of Eureka server information is used.cache
(CacheConfig cache) TheCacheConfig
to use controlling how a local cache of Eureka server information is used.cache
(Consumer<CacheConfig.Builder> consumer) TheCacheConfig
to use controlling how a local cache of Eureka server information is used.cache
(Supplier<? extends CacheConfig> supplier) TheCacheConfig
to use controlling how a local cache of Eureka server information is used.Clear existing value of this property.client()
TheHttp1Client
to use to communicate with the Eureka server.client
(Http1Client client) TheHttp1Client
to use to communicate with the Eureka server.client
(Http1ClientConfig clientConfig) TheHttp1Client
to use to communicate with the Eureka server.client
(Consumer<Http1ClientConfig.Builder> consumer) TheHttp1Client
to use to communicate with the Eureka server.config()
If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).from
(EurekaDiscoveryConfig prototype) Update this builder from an existing prototype instance.from
(EurekaDiscoveryConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()
The name of thisEurekaDiscoveryConfig
instance; the default value of "eureka" is normally entirely suitable.The name of thisEurekaDiscoveryConfig
instance; the default value of "eureka" is normally entirely suitable.protected void
Handles providers and decorators.boolean
Whether the host component of anyURI
should be set to the IP address stored by Eureka, or the hostname;false
by default.preferIpAddress
(boolean preferIpAddress) Whether the host component of anyURI
should be set to the IP address stored by Eureka, or the hostname;false
by default.toString()
protected void
Validates required properties.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
Deprecated.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 EurekaDiscoveryConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends EurekaDiscoveryConfig> - 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:
config
in interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends EurekaDiscoveryConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends EurekaDiscoveryConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
cache
TheCacheConfig
to use controlling how a local cache of Eureka server information is used.- Parameters:
cache
- aCacheConfig
- Returns:
- updated builder instance
- See Also:
-
cache
TheCacheConfig
to use controlling how a local cache of Eureka server information is used.- Parameters:
consumer
- consumer of builder for aCacheConfig
- Returns:
- updated builder instance
- See Also:
-
cache
TheCacheConfig
to use controlling how a local cache of Eureka server information is used.- Parameters:
supplier
- supplier of aCacheConfig
- Returns:
- updated builder instance
- See Also:
-
clearClient
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
client
TheHttp1Client
to use to communicate with the Eureka server.To be useful, the client must have a prototype whose
HttpClientConfig.BuilderBase.baseUri(io.helidon.webclient.api.ClientUri)
property is set to the endpoint of a Eureka Server instance. Often this value will be something likehttp://example.com:8761/eureka
.- Parameters:
client
- aHttp1Client
- Returns:
- updated builder instance
- See Also:
-
client
TheHttp1Client
to use to communicate with the Eureka server.To be useful, the client must have a prototype whose
HttpClientConfig.BuilderBase.baseUri(io.helidon.webclient.api.ClientUri)
property is set to the endpoint of a Eureka Server instance. Often this value will be something likehttp://example.com:8761/eureka
.- Parameters:
clientConfig
- aHttp1Client
- Returns:
- updated builder instance
- See Also:
-
client
TheHttp1Client
to use to communicate with the Eureka server.To be useful, the client must have a prototype whose
HttpClientConfig.BuilderBase.baseUri(io.helidon.webclient.api.ClientUri)
property is set to the endpoint of a Eureka Server instance. Often this value will be something likehttp://example.com:8761/eureka
.- Parameters:
consumer
- aHttp1Client
- Returns:
- updated builder instance
- See Also:
-
name
The name of thisEurekaDiscoveryConfig
instance; the default value of "eureka" is normally entirely suitable.- Parameters:
name
- the name of this instance- Returns:
- updated builder instance
- See Also:
-
preferIpAddress
Whether the host component of anyURI
should be set to the IP address stored by Eureka, or the hostname;false
by default.- Parameters:
preferIpAddress
-true
if the IP address should be used;false
if the hostname should be used- Returns:
- updated builder instance
- See Also:
-
cache
TheCacheConfig
to use controlling how a local cache of Eureka server information is used.- Returns:
- the cache
- See Also:
-
client
TheHttp1Client
to use to communicate with the Eureka server.To be useful, the client must have a prototype whose
HttpClientConfig.BuilderBase.baseUri(io.helidon.webclient.api.ClientUri)
property is set to the endpoint of a Eureka Server instance. Often this value will be something likehttp://example.com:8761/eureka
.- Returns:
- the client
- See Also:
-
name
The name of thisEurekaDiscoveryConfig
instance; the default value of "eureka" is normally entirely suitable.- Returns:
- the name
- See Also:
-
preferIpAddress
public boolean preferIpAddress()Whether the host component of anyURI
should be set to the IP address stored by Eureka, or the hostname;false
by default.- Returns:
- the prefer ip address
-
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)