Package io.servicetalk.http.api
Interface PartitionHttpClientBuilderConfigurator<U,R>
-
- Type Parameters:
U
- the type of address before resolution (unresolved address)R
- the type of address after resolution (resolved address)
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PartitionHttpClientBuilderConfigurator<U,R>
If different clients used by a partitioned client created by aPartitionedHttpClientBuilder
have different builder configuration, this configurator helps to configure them differently.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PartitionHttpClientBuilderConfigurator<U,R>
append(PartitionHttpClientBuilderConfigurator<U,R> toAppend)
Appends the passedPartitionHttpClientBuilderConfigurator
to thisPartitionHttpClientBuilderConfigurator
such that thisPartitionHttpClientBuilderConfigurator
is applied first and then the passedPartitionHttpClientBuilderConfigurator
.void
configureForPartition(PartitionAttributes attr, SingleAddressHttpClientBuilder<U,R> builder)
Configures the passedSingleAddressHttpClientBuilder
for a given set ofPartitionAttributes
.
-
-
-
Method Detail
-
configureForPartition
void configureForPartition(PartitionAttributes attr, SingleAddressHttpClientBuilder<U,R> builder)
Configures the passedSingleAddressHttpClientBuilder
for a given set ofPartitionAttributes
.- Parameters:
attr
- thePartitionAttributes
for the partitionbuilder
-SingleAddressHttpClientBuilder
to configure for the givenPartitionAttributes
-
append
default PartitionHttpClientBuilderConfigurator<U,R> append(PartitionHttpClientBuilderConfigurator<U,R> toAppend)
Appends the passedPartitionHttpClientBuilderConfigurator
to thisPartitionHttpClientBuilderConfigurator
such that thisPartitionHttpClientBuilderConfigurator
is applied first and then the passedPartitionHttpClientBuilderConfigurator
.- Parameters:
toAppend
-PartitionHttpClientBuilderConfigurator
to append- Returns:
- A composite
PartitionHttpClientBuilderConfigurator
after the append operation.
-
-