Class SimpleDiscoveryProperties

java.lang.Object
org.springframework.cloud.client.discovery.simple.SimpleDiscoveryProperties
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@ConfigurationProperties(prefix="spring.cloud.discovery.client.simple") public class SimpleDiscoveryProperties extends Object implements org.springframework.beans.factory.InitializingBean
Properties to hold the details of a DiscoveryClient service instances for a given service. It also holds the user-configurable order that will be used to establish the precedence of this client in the list of clients used by CompositeDiscoveryClient.
Author:
Biju Kunjummen, Olga Maciaszek-Sharma, Tim Ysewyn, Charu Covindane
  • Constructor Details

    • SimpleDiscoveryProperties

      public SimpleDiscoveryProperties()
  • Method Details

    • getInstances

      public Map<String, List<InstanceProperties>> getInstances()
    • setInstances

      public void setInstances(Map<String, List<InstanceProperties>> instances)
    • getLocal

      public InstanceProperties getLocal()
    • getOrder

      public int getOrder()
    • setOrder

      public void setOrder(int order)
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • toString

      public String toString()
      Overrides:
      toString in class Object