Package io.servicetalk.grpc.api
Interface GrpcClientBuilder.HttpInitializer<U,R>
- Type Parameters:
U
- unresolved addressR
- resolved address
- Enclosing interface:
- GrpcClientBuilder<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.
Initializes the underlying
SingleAddressHttpClientBuilder
used for the transport layer.-
Method Summary
Modifier and TypeMethodDescriptiondefault GrpcClientBuilder.HttpInitializer<U,
R> append
(GrpcClientBuilder.HttpInitializer<U, R> toAppend) Appends the passedGrpcClientBuilder.HttpInitializer
to thisGrpcClientBuilder.HttpInitializer
such that this instance is applied first and then the argument'sGrpcClientBuilder.HttpInitializer
.void
initialize
(SingleAddressHttpClientBuilder<U, R> builder) Configures the underlyingSingleAddressHttpClientBuilder
.
-
Method Details
-
initialize
Configures the underlyingSingleAddressHttpClientBuilder
.- Parameters:
builder
- The builder to customize the HTTP layer.
-
append
default GrpcClientBuilder.HttpInitializer<U,R> append(GrpcClientBuilder.HttpInitializer<U, R> toAppend) Appends the passedGrpcClientBuilder.HttpInitializer
to thisGrpcClientBuilder.HttpInitializer
such that this instance is applied first and then the argument'sGrpcClientBuilder.HttpInitializer
.- Parameters:
toAppend
-GrpcClientBuilder.HttpInitializer
to append.- Returns:
- A composite
GrpcClientBuilder.HttpInitializer
after the append operation.
-