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 class:
- 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 theSingleAddressHttpClientBuilder
for each new client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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
.void
initialize(PartitionAttributes attr, SingleAddressHttpClientBuilder<U,R> builder)
Configures the passedSingleAddressHttpClientBuilder
for a given set ofPartitionAttributes
.
-
-
-
Method Detail
-
initialize
void initialize(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 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.
-
-