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
ConstructorsModifierConstructorDescriptionprotectedCacheConfigImpl(CacheConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the state of the cache should be computed from changes reported by Eureka, or replaced in full;trueby default.booleanWhether to defer immediate cache synchronization;falseby default.booleanenabled()Whether a local cache of Eureka information is used or not;trueby default.booleanThe name of theThreadused to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.inthashCode()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:CacheConfigWhether the state of the cache should be computed from changes reported by Eureka, or replaced in full;trueby default.- Specified by:
computeChangesin interfaceCacheConfig- Returns:
- whether the state of the cache should be computed
-
deferSync
public boolean deferSync()Description copied from interface:CacheConfigWhether to defer immediate cache synchronization;falseby default.- Specified by:
deferSyncin interfaceCacheConfig- Returns:
trueif cache synchronization should be deferred until it is actually needed
-
enabled
public boolean enabled()Description copied from interface:CacheConfigWhether a local cache of Eureka information is used or not;trueby default.- Specified by:
enabledin interfaceCacheConfig- Returns:
trueif the cache should be used
-
fetchThreadName
Description copied from interface:CacheConfigThe name of theThreadused to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.- Specified by:
fetchThreadNamein interfaceCacheConfig- Returns:
- the name of the
Threadused to retrieve service information from the Eureka server - See Also:
-
syncInterval
Description copied from interface:CacheConfigThe time between retrievals of service information from the Eureka server; 30 seconds by default.- Specified by:
syncIntervalin interfaceCacheConfig- Returns:
- the time between retrievals of service information from the Eureka server
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-