Class EurekaDiscoveryConfig.BuilderBase.EurekaDiscoveryConfigImpl
java.lang.Object
io.helidon.discovery.providers.eureka.EurekaDiscoveryConfig.BuilderBase.EurekaDiscoveryConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<EurekaDiscovery>
,EurekaDiscoveryConfig
,Supplier<EurekaDiscovery>
- Enclosing class:
EurekaDiscoveryConfig.BuilderBase<BUILDER extends EurekaDiscoveryConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends EurekaDiscoveryConfig>
protected static class EurekaDiscoveryConfig.BuilderBase.EurekaDiscoveryConfigImpl
extends Object
implements EurekaDiscoveryConfig, Supplier<EurekaDiscovery>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.discovery.providers.eureka.EurekaDiscoveryConfig
EurekaDiscoveryConfig.Builder, EurekaDiscoveryConfig.BuilderBase<BUILDER extends EurekaDiscoveryConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends EurekaDiscoveryConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EurekaDiscoveryConfigImpl
(EurekaDiscoveryConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new instance of the runtime type from this config object.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.boolean
get()
int
hashCode()
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.toString()
-
Constructor Details
-
EurekaDiscoveryConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<EurekaDiscovery>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<EurekaDiscovery>
-
cache
Description copied from interface:EurekaDiscoveryConfig
TheCacheConfig
to use controlling how a local cache of Eureka server information is used.- Specified by:
cache
in interfaceEurekaDiscoveryConfig
- Returns:
- a
CacheConfig
- See Also:
-
client
Description copied from interface:EurekaDiscoveryConfig
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
.- Specified by:
client
in interfaceEurekaDiscoveryConfig
- Returns:
- a
Http1Client
- See Also:
-
name
Description copied from interface:EurekaDiscoveryConfig
The name of thisEurekaDiscoveryConfig
instance; the default value of "eureka" is normally entirely suitable.- Specified by:
name
in interfaceEurekaDiscoveryConfig
- Returns:
- the name of this instance
- See Also:
-
preferIpAddress
public boolean preferIpAddress()Description copied from interface:EurekaDiscoveryConfig
Whether the host component of anyURI
should be set to the IP address stored by Eureka, or the hostname;false
by default.- Specified by:
preferIpAddress
in interfaceEurekaDiscoveryConfig
- Returns:
true
if the IP address should be used;false
if the hostname should be used
-
toString
-
equals
-
hashCode
public int hashCode()
-