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.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 Details
-
initialize
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.
-