Interface EurekaDiscoveryConfig
- All Superinterfaces:
Prototype.Api
,Prototype.Factory<EurekaDiscovery>
- All Known Implementing Classes:
EurekaDiscoveryConfig.BuilderBase.EurekaDiscoveryConfigImpl
Prototypical state for
EurekaDiscovery
instances.
The EurekaDiscoveryConfig
class is generated at compile time using facilities from the Helidon Builder API.
Instances of this class are returned by the EurekaDiscovery.prototype()
method.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forEurekaDiscovery
.static class
EurekaDiscoveryConfig.BuilderBase<BUILDER extends EurekaDiscoveryConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends EurekaDiscoveryConfig> Fluent API builder base forEurekaDiscovery
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a new fluent API builder to customize configuration.builder
(EurekaDiscoveryConfig instance) Create a new fluent API builder from an existing instance.cache()
TheCacheConfig
to use controlling how a local cache of Eureka server information is used.client()
TheHttp1Client
to use to communicate with the Eureka server.static EurekaDiscoveryConfig
create()
Create a new instance with default values.static EurekaDiscoveryConfig
Deprecated.static EurekaDiscoveryConfig
Create a new instance from configuration.name()
The name of thisEurekaDiscoveryConfig
instance; the default value of "eureka" is normally entirely suitable.boolean
Whether the host component of anyURI
should be set to the IP address stored by Eureka, or the hostname;false
by default.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
cache
CacheConfig cache()TheCacheConfig
to use controlling how a local cache of Eureka server information is used.- Returns:
- a
CacheConfig
- See Also:
-
client
Optional<Http1Client> 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:
- a
Http1Client
- See Also:
-
name
String name()The name of thisEurekaDiscoveryConfig
instance; the default value of "eureka" is normally entirely suitable.- Returns:
- the name of this instance
- See Also:
-
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.- Returns:
true
if the IP address should be used;false
if the hostname should be used
-
create(io.helidon.config.Config)