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 theSingleAddressHttpClientBuilderfor 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.SingleAddressInitializerto thisPartitionedHttpClientBuilder.SingleAddressInitializersuch that thisPartitionedHttpClientBuilder.SingleAddressInitializeris applied first and then the passedPartitionedHttpClientBuilder.SingleAddressInitializer.voidinitialize(PartitionAttributes attr, SingleAddressHttpClientBuilder<U,R> builder)Configures the passedSingleAddressHttpClientBuilderfor a given set ofPartitionAttributes.
-
-
-
Method Detail
-
initialize
void initialize(PartitionAttributes attr, SingleAddressHttpClientBuilder<U,R> builder)
Configures the passedSingleAddressHttpClientBuilderfor a given set ofPartitionAttributes.- Parameters:
attr- thePartitionAttributesfor the partitionbuilder-SingleAddressHttpClientBuilderto configure for the givenPartitionAttributes
-
append
default PartitionedHttpClientBuilder.SingleAddressInitializer<U,R> append(PartitionedHttpClientBuilder.SingleAddressInitializer<U,R> toAppend)
Appends the passedPartitionedHttpClientBuilder.SingleAddressInitializerto thisPartitionedHttpClientBuilder.SingleAddressInitializersuch that thisPartitionedHttpClientBuilder.SingleAddressInitializeris applied first and then the passedPartitionedHttpClientBuilder.SingleAddressInitializer.- Parameters:
toAppend-PartitionedHttpClientBuilder.SingleAddressInitializerto append- Returns:
- A composite
PartitionedHttpClientBuilder.SingleAddressInitializerafter the append operation.
-
-