Package org.hertsstack.rpcclient
Interface HertsRpcClientInterceptor
-
public interface HertsRpcClientInterceptor
Herts core client interceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <ReqT,RespT>
voidbeforeCallMethod(io.grpc.MethodDescriptor<ReqT,RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel channel)
Before call methodvoid
setRequestMetadata(io.grpc.Metadata metadata)
Set request header metadata
-
-
-
Method Detail
-
setRequestMetadata
void setRequestMetadata(io.grpc.Metadata metadata)
Set request header metadata- Parameters:
metadata
- Metadata
-
beforeCallMethod
<ReqT,RespT> void beforeCallMethod(io.grpc.MethodDescriptor<ReqT,RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel channel)
Before call method- Type Parameters:
ReqT
- Request genericsRespT
- Response generics- Parameters:
methodDescriptor
- MethodDescriptorcallOptions
- CallOptionschannel
- Channel
-
-