Class CacheConfig.BuilderBase.CacheConfigImpl
java.lang.Object
io.helidon.discovery.providers.eureka.CacheConfig.BuilderBase.CacheConfigImpl
- All Implemented Interfaces:
Prototype.Api
,CacheConfig
- Enclosing class:
CacheConfig.BuilderBase<BUILDER extends CacheConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CacheConfig>
protected static class CacheConfig.BuilderBase.CacheConfigImpl
extends Object
implements CacheConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.discovery.providers.eureka.CacheConfig
CacheConfig.Builder, CacheConfig.BuilderBase<BUILDER extends CacheConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CacheConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CacheConfigImpl
(CacheConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the state of the cache should be computed from changes reported by Eureka, or replaced in full;true
by default.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.boolean
The name of theThread
used to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.int
hashCode()
The time between retrievals of service information from the Eureka server; 30 seconds by default.toString()
-
Constructor Details
-
CacheConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
computeChanges
public boolean computeChanges()Description copied from interface:CacheConfig
Whether the state of the cache should be computed from changes reported by Eureka, or replaced in full;true
by default.- Specified by:
computeChanges
in interfaceCacheConfig
- Returns:
- whether the state of the cache should be computed
-
deferSync
public boolean deferSync()Description copied from interface:CacheConfig
Whether to defer immediate cache synchronization;false
by default.- Specified by:
deferSync
in interfaceCacheConfig
- Returns:
true
if cache synchronization should be deferred until it is actually needed
-
enabled
public boolean enabled()Description copied from interface:CacheConfig
Whether a local cache of Eureka information is used or not;true
by default.- Specified by:
enabled
in interfaceCacheConfig
- Returns:
true
if the cache should be used
-
fetchThreadName
Description copied from interface:CacheConfig
The name of theThread
used to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.- Specified by:
fetchThreadName
in interfaceCacheConfig
- Returns:
- the name of the
Thread
used to retrieve service information from the Eureka server - See Also:
-
syncInterval
Description copied from interface:CacheConfig
The time between retrievals of service information from the Eureka server; 30 seconds by default.- Specified by:
syncInterval
in interfaceCacheConfig
- Returns:
- the time between retrievals of service information from the Eureka server
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-