类 DeadlineInterceptor

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

public class DeadlineInterceptor extends Object implements io.grpc.ClientInterceptor
拦截:设置Grpc调用超时时间
作者:
ok1996
  • 构造器详细资料

    • DeadlineInterceptor

      public DeadlineInterceptor(long timeout, TimeUnit timeUnit)
  • 方法详细资料

    • interceptCall

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