Makes locateCollection() retryable

This commit is contained in:
Spencer Gibb
2019-12-17 17:21:25 -05:00
parent 181ebc0a4c
commit f0bc1af547

View File

@@ -18,6 +18,7 @@ package org.springframework.cloud.config.client;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -154,6 +155,13 @@ public class ConfigServicePropertySourceLocator implements PropertySourceLocator
}
@Override
@Retryable(interceptor = "configServerRetryInterceptor")
public Collection<org.springframework.core.env.PropertySource<?>> locateCollection(
org.springframework.core.env.Environment environment) {
return PropertySourceLocator.locateCollection(this, environment);
}
private void log(Environment result) {
if (logger.isInfoEnabled()) {
logger.info(String.format(