类 RpcContextInterceptor
- java.lang.Object
-
- org.apache.dubbo.rpc.protocol.grpc.interceptors.RpcContextInterceptor
-
- 所有已实现的接口:
io.grpc.ClientInterceptor,io.grpc.ServerInterceptor,ClientInterceptor,ServerInterceptor
@Activate(group={"provider","consumer"}) public class RpcContextInterceptor extends Object implements ClientInterceptor, ServerInterceptor
Hand over context information from Dubbo to gRPC.
-
-
构造器概要
构造器 构造器 说明 RpcContextInterceptor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
-
-
-
方法详细资料
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)- 指定者:
interceptCall在接口中io.grpc.ClientInterceptor
-
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)- 指定者:
interceptCall在接口中io.grpc.ServerInterceptor
-
-