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 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLocal()
int
getOrder()
void
init()
void
setInstance
(String serviceId, String host, int port) void
setInstances
(Map<String, List<DefaultServiceInstance>> instances) void
setOrder
(int order)
-
Constructor Details
-
SimpleDiscoveryProperties
public SimpleDiscoveryProperties()
-
-
Method Details
-
getInstances
-
setInstances
-
getLocal
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) -
init
-
setInstance
-