Package io.servicetalk.http.api
Interface PartitionedHttpClientBuilder.SingleAddressInitializer<U,R>
- Type Parameters:
U
- the type of address before resolution (unresolved address)R
- the type of address after resolution (resolved address)
- Enclosing interface:
- PartitionedHttpClientBuilder<U,
R>
- 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 static interface PartitionedHttpClientBuilder.SingleAddressInitializer<U,R>
Initializes the
SingleAddressHttpClientBuilder
for each new client.-
Method Summary
Modifier and TypeMethodDescriptionAppends the passedPartitionedHttpClientBuilder.SingleAddressInitializer
to thisPartitionedHttpClientBuilder.SingleAddressInitializer
such that thisPartitionedHttpClientBuilder.SingleAddressInitializer
is applied first and then the passedPartitionedHttpClientBuilder.SingleAddressInitializer
.void
initialize
(PartitionAttributes attr, SingleAddressHttpClientBuilder<U, R> builder) Configures the passedSingleAddressHttpClientBuilder
for a given set ofPartitionAttributes
.
-
Method Details
-
initialize
Configures the passedSingleAddressHttpClientBuilder
for a given set ofPartitionAttributes
.- Parameters:
attr
- thePartitionAttributes
for the partitionbuilder
-SingleAddressHttpClientBuilder
to configure for the givenPartitionAttributes
-
append
default PartitionedHttpClientBuilder.SingleAddressInitializer<U,R> append(PartitionedHttpClientBuilder.SingleAddressInitializer<U, R> toAppend) Appends the passedPartitionedHttpClientBuilder.SingleAddressInitializer
to thisPartitionedHttpClientBuilder.SingleAddressInitializer
such that thisPartitionedHttpClientBuilder.SingleAddressInitializer
is applied first and then the passedPartitionedHttpClientBuilder.SingleAddressInitializer
.- Parameters:
toAppend
-PartitionedHttpClientBuilder.SingleAddressInitializer
to append- Returns:
- A composite
PartitionedHttpClientBuilder.SingleAddressInitializer
after the append operation.
-