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.HttpInitializerto thisGrpcClientBuilder.HttpInitializersuch that this instance is applied first and then the argument'sGrpcClientBuilder.HttpInitializer.voidinitialize(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.HttpInitializerto thisGrpcClientBuilder.HttpInitializersuch that this instance is applied first and then the argument'sGrpcClientBuilder.HttpInitializer.- Parameters:
toAppend-GrpcClientBuilder.HttpInitializerto append.- Returns:
- A composite
GrpcClientBuilder.HttpInitializerafter the append operation.
-