HttpServiceGroupConfigurer extends Ordered

Closes gh-34739

Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek-sharma@broadcom.com>
This commit is contained in:
Olga Maciaszek-Sharma
2025-04-10 14:15:32 +02:00
committed by rstoyanchev
parent 4599ad4168
commit b24f4edbec

View File

@@ -20,6 +20,7 @@ import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Predicate;
import org.springframework.core.Ordered;
import org.springframework.web.service.invoker.HttpServiceProxyFactory;
/**
@@ -31,13 +32,22 @@ import org.springframework.web.service.invoker.HttpServiceProxyFactory;
* @param <CB> the type of client builder, i.e. {@code RestClient} or {@code WebClient} builder.
*/
@FunctionalInterface
public interface HttpServiceGroupConfigurer<CB> {
public interface HttpServiceGroupConfigurer<CB> extends Ordered {
/**
* Configure the underlying infrastructure for all group.
*/
void configureGroups(Groups<CB> groups);
/**
* Determine the order of this configurer relative to others.
* <p>By default, this is {@link Ordered#LOWEST_PRECEDENCE}.
*/
@Override
default int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
/**
* Contract to help iterate and configure the set of groups.