Package io.helidon.integrations.eureka
Interface PortInfoConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
PortInfoConfig.BuilderBase.PortInfoConfigImpl
A prototype describing initial Eureka Server service instance registration port details.
This interface is deliberately modeled to closely resemble port-related methods of the
com.netflix.appinfo.InstanceInfo class for familiarity.
Its configuration is deliberately modeled to closely resemble that expressed by the
com.netflix.appinfo.PropertiesInstanceConfig class and its supertypes for user familiarity.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forPortInfoConfig.static classPortInfoConfig.BuilderBase<BUILDER extends PortInfoConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends PortInfoConfig> Fluent API builder base forPortInfoConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic PortInfoConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static PortInfoConfig.Builderbuilder(PortInfoConfig instance) Create a new fluent API builder from an existing instance.static PortInfoConfigcreate()Create a new instance with default values.static PortInfoConfigDeprecated.static PortInfoConfigCreate a new instance from configuration.booleanenabled()Whether the port is enabled.intport()The port number.
-
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
-
port
int port()The port number.- Returns:
- the port number
-
enabled
boolean enabled()Whether the port is enabled.- Returns:
- whether the port is enabled
-
create(io.helidon.config.Config)