These are chat archives for spring-cloud/spring-cloud

Mar 2017
Mar 27 2017 04:11

I am creating event handler class which implement ApplicationListener

Earlier i was using discoveryClient.getDiscoveryServiceUrls(DISCOVERY_CLIENT_ZONE) to achive this. As this is deprecated i am using EndpointUtils.getDiscoveryServiceUrls like below
final List<String> discoveryUrls = EndpointUtils.getDiscoveryServiceUrls(config, DISCOVERY_CLIENT_ZONE,randomizer);

Is there any way to get DISCOVERY_CLIENT_ZONE,randomizer value?