Class DaprMetadataReceiverInterceptor
java.lang.Object
io.dapr.internal.grpc.interceptors.DaprMetadataReceiverInterceptor
- All Implemented Interfaces:
io.grpc.ClientInterceptor
Consumes gRPC metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionDaprMetadataReceiverInterceptor(Consumer<io.grpc.Metadata> metadataConsumer) Creates an instance of the consumer for gRPC metadata. -
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel channel)
-
Constructor Details
-
DaprMetadataReceiverInterceptor
Creates an instance of the consumer for gRPC metadata.- Parameters:
metadataConsumer- gRPC metadata consumer
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel channel) - Specified by:
interceptCallin interfaceio.grpc.ClientInterceptor
-