public class DefaultClientCallMetadataInjector extends Object implements ClientInterceptor
ClientInterceptor implementation that injects SiLA Metadata in the gRPC context| Constructor and Description |
|---|
DefaultClientCallMetadataInjector() |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
interceptCall(MethodDescriptor<ReqT,RespT> methodDescriptor,
CallOptions callOptions,
Channel channel)
Intercept a call and inject metadata in its context
|
public <ReqT,RespT> ClientCall<ReqT,RespT> interceptCall(MethodDescriptor<ReqT,RespT> methodDescriptor, CallOptions callOptions, Channel channel)
interceptCall in interface ClientInterceptorReqT - the request typeRespT - the response typemethodDescriptor - the remote method to be called.callOptions - the runtime options to be applied to this call.channel - the channel which is being intercepted.ForwardingClientCall.SimpleForwardingClientCall with SiLA Metadata contextCopyright © 2023 SiLA Java Developers. All rights reserved.