Interface HertsRpcClientInterceptor


  • public interface HertsRpcClientInterceptor
    Herts core client interceptor
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <ReqT,​RespT>
      void
      beforeCallMethod​(io.grpc.MethodDescriptor<ReqT,​RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel channel)
      Before call method
      void 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 generics
        RespT - Response generics
        Parameters:
        methodDescriptor - MethodDescriptor
        callOptions - CallOptions
        channel - Channel