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.
Deprecated.
If different clients used by a partitioned client created by a
PartitionedHttpClientBuilder
have different
builder configuration, this configurator helps to configure them differently.-
Method Summary
Modifier and TypeMethodDescriptiondefault PartitionHttpClientBuilderConfigurator<U,
R> append
(PartitionHttpClientBuilderConfigurator<U, R> toAppend) Deprecated.Appends the passedPartitionHttpClientBuilderConfigurator
to thisPartitionHttpClientBuilderConfigurator
such that thisPartitionHttpClientBuilderConfigurator
is applied first and then the passedPartitionHttpClientBuilderConfigurator
.void
configureForPartition
(PartitionAttributes attr, SingleAddressHttpClientBuilder<U, R> builder) Deprecated.Configures the passedSingleAddressHttpClientBuilder
for a given set ofPartitionAttributes
.
-
Method Details
-
configureForPartition
Deprecated.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) Deprecated.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.
-
PartitionedHttpClientBuilder.SingleAddressInitializer
.