Class SimpleDiscoveryProperties
- java.lang.Object
-
- org.springframework.cloud.client.discovery.simple.SimpleDiscoveryProperties
-
@ConfigurationProperties(prefix="spring.cloud.discovery.client.simple") public class SimpleDiscoveryProperties extends Object
Properties to hold the details of aDiscoveryClient
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 byCompositeDiscoveryClient
.- Author:
- Biju Kunjummen, Olga Maciaszek-Sharma, Tim Ysewyn, Charu Covindane
-
-
Constructor Summary
Constructors Constructor Description SimpleDiscoveryProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<DefaultServiceInstance>>
getInstances()
DefaultServiceInstance
getLocal()
int
getOrder()
void
init()
void
setInstance(String serviceId, String host, int port)
void
setInstances(Map<String,List<DefaultServiceInstance>> instances)
void
setOrder(int order)
-
-
-
Method Detail
-
getInstances
public Map<String,List<DefaultServiceInstance>> getInstances()
-
setInstances
public void setInstances(Map<String,List<DefaultServiceInstance>> instances)
-
getLocal
public DefaultServiceInstance getLocal()
-
getOrder
public int getOrder()
-
setOrder
public void setOrder(int order)
-
init
@PostConstruct public void init()
-
-