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

27th
Mar 2017
soorajjoshi
@soorajjoshi
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?