Module io.inverno.mod.grpc.client
Package io.inverno.mod.grpc.client
Interface GrpcClient.Stub<A extends ExchangeContext,B extends GrpcClient.Stub<A,B>>
- Type Parameters:
A
- the exchange context typeB
- the stub type
- All Known Subinterfaces:
GrpcClient.CloseableStub<A,
B>
- Enclosing interface:
GrpcClient
public static interface GrpcClient.Stub<A extends ExchangeContext,B extends GrpcClient.Stub<A,B>>
A base gRPC client stub definition.
This is intended to be used when generating gRPC client stub from Protocol buffer definitions.
- Since:
- 1.9
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionwithMetadata
(Consumer<GrpcOutboundRequestMetadata> metadataConfigurer) Returns a new stub configured with the specified metadata.
-
Method Details
-
withMetadata
Returns a new stub configured with the specified metadata.
- Parameters:
metadataConfigurer
- a gRPC request metadata configurer- Returns:
- a configured stub
-