Interface HttpServiceGroupConfigurer.Groups<CB>
- Type Parameters:
CB- the type of client builder, i.e.RestClientorWebClientbuilder.
- Enclosing interface:
HttpServiceGroupConfigurer<CB>
public static interface HttpServiceGroupConfigurer.Groups<CB>
Contract to help iterate and configure the set of groups.
- Since:
- 7.0
- Author:
- Rossen Stoyanchev, Olga Maciaszek-Sharma
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(BiConsumer<HttpServiceGroup, CB> clientConfigurer, BiConsumer<HttpServiceGroup, HttpServiceProxyFactory.Builder> proxyFactoryConfigurer) Configure the client andHttpServiceProxyFactoryfor the selected groups.voidconfigureClient(BiConsumer<HttpServiceGroup, CB> clientConfigurer) Variant ofconfigureClient(Consumer)with access to the group being configured.voidconfigureClient(Consumer<CB> clientConfigurer) Configure the client for the selected groups.voidconfigureProxyFactory(BiConsumer<HttpServiceGroup, HttpServiceProxyFactory.Builder> proxyFactoryConfigurer) Configure theHttpServiceProxyFactoryfor the selected groups.filter(Predicate<HttpServiceGroup> predicate) Select groups to configure through aPredicate.filterByName(String... groupNames) Select groups to configure by name.
-
Method Details
-
filterByName
Select groups to configure by name. -
filter
Select groups to configure through aPredicate. -
configureClient
-
configureClient
Variant ofconfigureClient(Consumer)with access to the group being configured. -
configureProxyFactory
void configureProxyFactory(BiConsumer<HttpServiceGroup, HttpServiceProxyFactory.Builder> proxyFactoryConfigurer) Configure theHttpServiceProxyFactoryfor the selected groups. This is called once for each selected group. -
configure
void configure(BiConsumer<HttpServiceGroup, CB> clientConfigurer, BiConsumer<HttpServiceGroup, HttpServiceProxyFactory.Builder> proxyFactoryConfigurer) Configure the client andHttpServiceProxyFactoryfor the selected groups. This is called once for each selected group.
-