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 classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncache()TheCacheConfigto use controlling how a local cache of Eureka server information is used.cache(CacheConfig cache) TheCacheConfigto use controlling how a local cache of Eureka server information is used.cache(Consumer<CacheConfig.Builder> consumer) TheCacheConfigto use controlling how a local cache of Eureka server information is used.cache(Supplier<? extends CacheConfig> supplier) TheCacheConfigto use controlling how a local cache of Eureka server information is used.Clear existing value of this property.client()TheHttp1Clientto use to communicate with the Eureka server.client(Http1Client client) TheHttp1Clientto use to communicate with the Eureka server.client(Http1ClientConfig clientConfig) TheHttp1Clientto use to communicate with the Eureka server.client(Consumer<Http1ClientConfig.Builder> consumer) TheHttp1Clientto 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 thisEurekaDiscoveryConfiginstance; the default value of "eureka" is normally entirely suitable.The name of thisEurekaDiscoveryConfiginstance; the default value of "eureka" is normally entirely suitable.protected voidHandles providers and decorators.booleanWhether the host component of anyURIshould be set to the IP address stored by Eureka, or the hostname;falseby default.preferIpAddress(boolean preferIpAddress) Whether the host component of anyURIshould be set to the IP address stored by Eureka, or the hostname;falseby default.toString()protected voidValidates required properties.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 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:
configin 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
TheCacheConfigto use controlling how a local cache of Eureka server information is used.- Parameters:
cache- aCacheConfig- Returns:
- updated builder instance
- See Also:
-
cache
TheCacheConfigto 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
TheCacheConfigto 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
TheHttp1Clientto 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
TheHttp1Clientto 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
TheHttp1Clientto 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 thisEurekaDiscoveryConfiginstance; 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 anyURIshould be set to the IP address stored by Eureka, or the hostname;falseby default.- Parameters:
preferIpAddress-trueif the IP address should be used;falseif the hostname should be used- Returns:
- updated builder instance
- See Also:
-
cache
TheCacheConfigto use controlling how a local cache of Eureka server information is used.- Returns:
- the cache
- See Also:
-
client
TheHttp1Clientto 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 thisEurekaDiscoveryConfiginstance; the default value of "eureka" is normally entirely suitable.- Returns:
- the name
- See Also:
-
preferIpAddress
public boolean preferIpAddress()Whether the host component of anyURIshould be set to the IP address stored by Eureka, or the hostname;falseby 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)