类 CustomClientInterceptor

java.lang.Object
cn.iosd.starter.grpc.client.interceptor.CustomClientInterceptor
所有已实现的接口:
io.grpc.ClientInterceptor

public class CustomClientInterceptor extends Object implements io.grpc.ClientInterceptor
拦截:设置Grpc调用超时时间、请求头参数
作者:
ok1996
  • 构造器详细资料

  • 方法详细资料

    • interceptCall

      public <ReqT, RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel channel)
      指定者:
      interceptCall 在接口中 io.grpc.ClientInterceptor