Package io.servicetalk.http.api
Interface MultiAddressHttpClientBuilder.SingleAddressInitializer<U,R>
- Type Parameters:
U
- The unresolved address type.R
- The resolved address type.
- Enclosing interface:
- MultiAddressHttpClientBuilder<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 MultiAddressHttpClientBuilder.SingleAddressInitializer<U,R>
Initializes the
SingleAddressHttpClientBuilder
for each new client.-
Method Summary
Modifier and TypeMethodDescriptionAppends the passedMultiAddressHttpClientBuilder.SingleAddressInitializer
to thisMultiAddressHttpClientBuilder.SingleAddressInitializer
such that thisMultiAddressHttpClientBuilder.SingleAddressInitializer
is applied first and then the passedMultiAddressHttpClientBuilder.SingleAddressInitializer
.void
initialize
(String scheme, U address, SingleAddressHttpClientBuilder<U, R> builder)
-
Method Details
-
initialize
- Parameters:
scheme
- The scheme parsed from the request URI.address
- The unresolved address.builder
- The builder to customize and build aStreamingHttpClient
.
-
append
default MultiAddressHttpClientBuilder.SingleAddressInitializer<U,R> append(MultiAddressHttpClientBuilder.SingleAddressInitializer<U, R> toAppend) Appends the passedMultiAddressHttpClientBuilder.SingleAddressInitializer
to thisMultiAddressHttpClientBuilder.SingleAddressInitializer
such that thisMultiAddressHttpClientBuilder.SingleAddressInitializer
is applied first and then the passedMultiAddressHttpClientBuilder.SingleAddressInitializer
.- Parameters:
toAppend
-MultiAddressHttpClientBuilder.SingleAddressInitializer
to append- Returns:
- A composite
MultiAddressHttpClientBuilder.SingleAddressInitializer
after the append operation.
-