Package io.servicetalk.http.api
Interface HttpProviders.MultiAddressHttpClientBuilderProvider
- Enclosing class:
- HttpProviders
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provider for
MultiAddressHttpClientBuilder.-
Method Summary
Modifier and TypeMethodDescription<U,R> MultiAddressHttpClientBuilder<U, R> newBuilder(MultiAddressHttpClientBuilder<U, R> builder) Deprecated.default <U,R> MultiAddressHttpClientBuilder<U, R> newBuilder(String id, MultiAddressHttpClientBuilder<U, R> builder) Returns aMultiAddressHttpClientBuilderbased on the pre-initializedMultiAddressHttpClientBuilder.
-
Method Details
-
newBuilder
@Deprecated <U,R> MultiAddressHttpClientBuilder<U,R> newBuilder(MultiAddressHttpClientBuilder<U, R> builder) Deprecated.UsenewBuilder(String, MultiAddressHttpClientBuilder). To avoid breaking changes, all current implementations must implement both methods. In the next version the default implementation will swap. Then users will be able to keep implementation only for the new method. In the release after, the deprecated method will be removed.Returns aMultiAddressHttpClientBuilderbased on the pre-initializedMultiAddressHttpClientBuilder.This method may return the pre-initialized
builderas-is, or apply custom builder settings before returning it, or wrap it (DelegatingMultiAddressHttpClientBuildermay be helpful).- Type Parameters:
U- the type of address before resolution (unresolved address)R- the type of address after resolution (resolved address)- Parameters:
builder- pre-initializedMultiAddressHttpClientBuilder- Returns:
- a
MultiAddressHttpClientBuilderbased on the pre-initializedMultiAddressHttpClientBuilder. - See Also:
-
newBuilder
default <U,R> MultiAddressHttpClientBuilder<U,R> newBuilder(String id, MultiAddressHttpClientBuilder<U, R> builder) Returns aMultiAddressHttpClientBuilderbased on the pre-initializedMultiAddressHttpClientBuilder.This method may return the pre-initialized
builderas-is, or apply custom builder settings before returning it, or wrap it (DelegatingMultiAddressHttpClientBuildermay be helpful).- Type Parameters:
U- the type of address before resolution (unresolved address)R- the type of address after resolution (resolved address)- Parameters:
id- identification of thebuilderbuilder- pre-initializedMultiAddressHttpClientBuilder- Returns:
- a
MultiAddressHttpClientBuilderbased on the pre-initializedMultiAddressHttpClientBuilder. - See Also:
-
newBuilder(String, MultiAddressHttpClientBuilder).