Package io.helidon.integrations.eureka
Interface LeaseInfoConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
LeaseInfoConfig.BuilderBase.LeaseInfoConfigImpl
A prototype describing initial Eureka Server service instance registration lease details.
This interface is deliberately modeled to closely resemble the com.netflix.appinfo.LeaseInfo
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 forLeaseInfoConfig
.static class
LeaseInfoConfig.BuilderBase<BUILDER extends LeaseInfoConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LeaseInfoConfig> Fluent API builder base forLeaseInfoConfig
. -
Method Summary
Modifier and TypeMethodDescriptionstatic LeaseInfoConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static LeaseInfoConfig.Builder
builder
(LeaseInfoConfig instance) Create a new fluent API builder from an existing instance.static LeaseInfoConfig
create()
Create a new instance with default values.static LeaseInfoConfig
Create a new instance from configuration.int
The lease duration in seconds; the default value is strongly recommended.int
The lease renewal interval in seconds; the default value is strongly recommended.
-
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
-
renewalIntervalInSecs
int renewalIntervalInSecs()The lease renewal interval in seconds; the default value is strongly recommended.- Returns:
- the lease renewal interval in seconds
-
durationInSecs
int durationInSecs()The lease duration in seconds; the default value is strongly recommended.- Returns:
- the lease duration in seconds
-