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.
  • Constructor Details

    • CacheConfigImpl

      protected CacheConfigImpl(CacheConfig.BuilderBase<?,?> builder)
      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 interface CacheConfig
      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 interface CacheConfig
      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 interface CacheConfig
      Returns:
      true if the cache should be used
    • fetchThreadName

      public String fetchThreadName()
      Description copied from interface: CacheConfig
      The name of the Thread used to retrieve service information from the Eureka server; "Eureka registry fetch thread" by default.
      Specified by:
      fetchThreadName in interface CacheConfig
      Returns:
      the name of the Thread used to retrieve service information from the Eureka server
      See Also:
    • syncInterval

      public Duration 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 interface CacheConfig
      Returns:
      the time between retrievals of service information from the Eureka server
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object