Interface CacheConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
CacheConfig.BuilderBase.CacheConfigImpl
Prototypical state for the portion of Eureka Discovery configuration related to a local cache of Eureka server
information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forCacheConfig.static classCacheConfig.BuilderBase<BUILDER extends CacheConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends CacheConfig> Fluent API builder base forCacheConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static CacheConfig.Builderbuilder(CacheConfig instance) Create a new fluent API builder from an existing instance.booleanWhether the state of the cache should be computed from changes reported by Eureka, or replaced in full;trueby default.static CacheConfigcreate()Create a new instance with default values.static CacheConfigDeprecated.static CacheConfigCreate a new instance from configuration.booleanWhether to defer immediate cache synchronization;falseby default.booleanenabled()Whether a local cache of Eureka information is used or not;trueby default.The name of theThreadused to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.The time between retrievals of service information from the Eureka server; 30 seconds by default.
-
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
-
computeChanges
boolean computeChanges()Whether the state of the cache should be computed from changes reported by Eureka, or replaced in full;trueby default.- Returns:
- whether the state of the cache should be computed
-
deferSync
boolean deferSync()Whether to defer immediate cache synchronization;falseby default.- Returns:
trueif cache synchronization should be deferred until it is actually needed
-
enabled
boolean enabled()Whether a local cache of Eureka information is used or not;trueby default.- Returns:
trueif the cache should be used
-
fetchThreadName
String fetchThreadName()The name of theThreadused to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.- Returns:
- the name of the
Threadused to retrieve service information from the Eureka server - See Also:
-
syncInterval
Duration syncInterval()The time between retrievals of service information from the Eureka server; 30 seconds by default.- Returns:
- the time between retrievals of service information from the Eureka server
- See Also:
-
create(io.helidon.config.Config)