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 class
Fluent API builder forPortInfoConfig
.static class
PortInfoConfig.BuilderBase<BUILDER extends PortInfoConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends PortInfoConfig> Fluent API builder base forPortInfoConfig
. -
Method Summary
Modifier and TypeMethodDescriptionstatic PortInfoConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static PortInfoConfig.Builder
builder
(PortInfoConfig instance) Create a new fluent API builder from an existing instance.static PortInfoConfig
create()
Create a new instance with default values.static PortInfoConfig
Create a new instance from configuration.boolean
enabled()
Whether the port is enabled.int
port()
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
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
-