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 class
Fluent API builder forEurekaRegistrationServerFeature
.static class
EurekaRegistrationConfig.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.Builder
used to build an internal client for communicating with a Eureka server.static EurekaRegistrationConfig
create()
Create a new instance with default values.static EurekaRegistrationConfig
Create a new instance from configuration.boolean
enabled()
Whether this feature will be enabled.AnInstanceInfoConfig
describing the service instance to be registered.AJsonBuilderFactory
used for working with JSON internally; the default value is normally entirely suitable.name()
The non-null
name of this instance; "eureka" is a default value.double
weight()
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
Create a new instance with default values.- Returns:
- a new instance
-
clientBuilderSupplier
Supplier<Http1ClientConfig.Builder> clientBuilderSupplier()AnHttp1ClientConfig.Builder
used to build an internal client for communicating with a Eureka server.An
Http1ClientConfig
built from the supplied builder must have itsHttpClientConfigBlueprint.baseUri()
property set to address a Eureka Server instance.- Returns:
- an
Http1ClientConfig.Builder
-
instanceInfo
InstanceInfoConfig instanceInfo()AnInstanceInfoConfig
describing the service instance to be registered.- Returns:
- the
InstanceInfoConfig
describing the service instance to be registered - See Also:
-
jsonBuilderFactory
JsonBuilderFactory jsonBuilderFactory()AJsonBuilderFactory
used 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-null
name of this instance; "eureka" is a default value.- Returns:
- the non-
null
name 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
-