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 classFluent API builder forEurekaDiscovery.static classEurekaDiscoveryConfig.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()TheCacheConfigto use controlling how a local cache of Eureka server information is used.client()TheHttp1Clientto use to communicate with the Eureka server.static EurekaDiscoveryConfigcreate()Create a new instance with default values.static EurekaDiscoveryConfigDeprecated.static EurekaDiscoveryConfigCreate a new instance from configuration.name()The name of thisEurekaDiscoveryConfiginstance; the default value of "eureka" is normally entirely suitable.booleanWhether the host component of anyURIshould be set to the IP address stored by Eureka, or the hostname;falseby 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()TheCacheConfigto use controlling how a local cache of Eureka server information is used.- Returns:
- a
CacheConfig - See Also:
-
client
Optional<Http1Client> 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:
- a
Http1Client - See Also:
-
name
String name()The name of thisEurekaDiscoveryConfiginstance; 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 anyURIshould be set to the IP address stored by Eureka, or the hostname;falseby default.- Returns:
trueif the IP address should be used;falseif the hostname should be used
-
create(io.helidon.config.Config)