Package io.helidon.integrations.eureka
Interface EurekaRegistrationConfig
- All Superinterfaces:
Prototype.Api,Prototype.Factory<EurekaRegistrationServerFeature>
- All Known Implementing Classes:
EurekaRegistrationConfig.BuilderBase.EurekaRegistrationConfigImpl
A prototype for
EurekaRegistrationServerFeature runtime type instances.
Most users will never need to programmatically interact with any of the classes in this package.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forEurekaRegistrationServerFeature.static classEurekaRegistrationConfig.BuilderBase<BUILDER extends EurekaRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends EurekaRegistrationConfig> Fluent API builder base forEurekaRegistrationServerFeature. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(EurekaRegistrationConfig instance) Create a new fluent API builder from an existing instance.AnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.static EurekaRegistrationConfigcreate()Create a new instance with default values.static EurekaRegistrationConfigDeprecated.static EurekaRegistrationConfigCreate a new instance from configuration.booleanenabled()Whether this feature will be enabled.AnInstanceInfoConfigdescribing the service instance to be registered.AJsonBuilderFactoryused for working with JSON internally; the default value is normally entirely suitable.name()The non-nullname of this instance; "eureka" is a default value.doubleweight()The (zero or positive) weight of this instance.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
-
clientBuilderSupplier
Supplier<Http1ClientConfig.Builder> clientBuilderSupplier()AnHttp1ClientConfig.Builderused to build an internal client for communicating with a Eureka server.An
Http1ClientConfigbuilt from the supplied builder must have itsHttpClientConfig.baseUri()property set to address a Eureka Server instance.- Returns:
- an
Http1ClientConfig.Builder
-
instanceInfo
InstanceInfoConfig instanceInfo()AnInstanceInfoConfigdescribing the service instance to be registered.- Returns:
- the
InstanceInfoConfigdescribing the service instance to be registered - See Also:
-
jsonBuilderFactory
JsonBuilderFactory jsonBuilderFactory()AJsonBuilderFactoryused for working with JSON internally; the default value is normally entirely suitable.- Returns:
- a
JsonBuilderFactory
-
enabled
boolean enabled()Whether this feature will be enabled.- Returns:
- whether this feature will be enabled
-
name
String name()The non-nullname of this instance; "eureka" is a default value.- Returns:
- the non-
nullname of this instance; "eureka" is a default value
-
weight
double weight()The (zero or positive) weight of this instance.- Returns:
- the (zero or positive) weight of this instance
-
create(io.helidon.config.Config)