All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
CacheConfig.BuilderBase.CacheConfigImpl

public interface CacheConfig extends Prototype.Api
Prototypical state for the portion of Eureka Discovery configuration related to a local cache of Eureka server information.
See Also:
  • Method Details

    • builder

      static CacheConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static CacheConfig.Builder builder(CacheConfig instance)
      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

      static CacheConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static CacheConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static CacheConfig 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 the Thread 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: