@ConfigurationProperties(prefix="spring.cloud.discovery.client.simple") public class SimpleDiscoveryProperties extends Object
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
.Constructor and Description |
---|
SimpleDiscoveryProperties() |
Modifier and Type | Method and 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) |
public Map<String,List<DefaultServiceInstance>> getInstances()
public void setInstances(Map<String,List<DefaultServiceInstance>> instances)
public DefaultServiceInstance getLocal()
public int getOrder()
public void setOrder(int order)
@PostConstruct public void init()
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.