Makes locateCollection() retryable
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user