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 class
Fluent API builder forCacheConfig
.static class
CacheConfig.BuilderBase<BUILDER extends CacheConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CacheConfig> Fluent API builder base forCacheConfig
. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static CacheConfig.Builder
builder
(CacheConfig instance) Create a new fluent API builder from an existing instance.boolean
Whether the state of the cache should be computed from changes reported by Eureka, or replaced in full;true
by default.static CacheConfig
create()
Create a new instance with default values.static CacheConfig
Deprecated.static CacheConfig
Create a new instance from configuration.boolean
Whether to defer immediate cache synchronization;false
by default.boolean
enabled()
Whether a local cache of Eureka information is used or not;true
by default.The name of theThread
used 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;true
by default.- Returns:
- whether the state of the cache should be computed
-
deferSync
boolean deferSync()Whether to defer immediate cache synchronization;false
by default.- Returns:
true
if cache synchronization should be deferred until it is actually needed
-
enabled
boolean enabled()Whether a local cache of Eureka information is used or not;true
by default.- Returns:
true
if the cache should be used
-
fetchThreadName
String fetchThreadName()The name of theThread
used to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.- Returns:
- the name of the
Thread
used 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)