Class CachingServiceInstanceListSupplier

java.lang.Object
org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
org.springframework.cloud.loadbalancer.core.CachingServiceInstanceListSupplier
All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<ServiceInstance>>>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, ServiceInstanceListSupplier

public class CachingServiceInstanceListSupplier extends DelegatingServiceInstanceListSupplier
A ServiceInstanceListSupplier implementation that tries retrieving ServiceInstance objects from cache; if none found, retrieves instances using DiscoveryClientServiceInstanceListSupplier.
Since:
2.2.0
Author:
Spencer Gibb, Olga Maciaszek-Sharma
  • Field Details

    • SERVICE_INSTANCE_CACHE_NAME

      public static final String SERVICE_INSTANCE_CACHE_NAME
      Name of the service cache instance.
  • Constructor Details

    • CachingServiceInstanceListSupplier

      public CachingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.cache.CacheManager cacheManager)
  • Method Details