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
ConstructorsModifierConstructorDescriptionprotectedEurekaDiscoveryConfigImpl(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()TheCacheConfigto use controlling how a local cache of Eureka server information is used.client()TheHttp1Clientto use to communicate with the Eureka server.booleanget()inthashCode()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.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.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<EurekaDiscovery>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<EurekaDiscovery>
-
cache
Description copied from interface:EurekaDiscoveryConfigTheCacheConfigto use controlling how a local cache of Eureka server information is used.- Specified by:
cachein interfaceEurekaDiscoveryConfig- Returns:
- a
CacheConfig - See Also:
-
client
Description copied from interface:EurekaDiscoveryConfigTheHttp1Clientto 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:
clientin interfaceEurekaDiscoveryConfig- Returns:
- a
Http1Client - See Also:
-
name
Description copied from interface:EurekaDiscoveryConfigThe name of thisEurekaDiscoveryConfiginstance; the default value of "eureka" is normally entirely suitable.- Specified by:
namein interfaceEurekaDiscoveryConfig- Returns:
- the name of this instance
- See Also:
-
preferIpAddress
public boolean preferIpAddress()Description copied from interface:EurekaDiscoveryConfigWhether the host component of anyURIshould be set to the IP address stored by Eureka, or the hostname;falseby default.- Specified by:
preferIpAddressin interfaceEurekaDiscoveryConfig- Returns:
trueif the IP address should be used;falseif the hostname should be used
-
toString
-
equals
-
hashCode
public int hashCode()
-