Package pl.morgwai.base.grpc.scopes
Class ClientContextInterceptor
- java.lang.Object
-
- pl.morgwai.base.grpc.scopes.ClientContextInterceptor
-
- All Implemented Interfaces:
ClientInterceptor
public class ClientContextInterceptor extends Object implements ClientInterceptor
Creates a newClientRpcContext
for each new RPC (ClientCall
) and a newListenerEventContext
for eachListener
call. An Instance can be obtained fromGrpcModule.clientInterceptor
orGrpcModule.nestingClientInterceptor
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <RequestT,ResponseT>
ClientCall<RequestT,ResponseT>interceptCall(MethodDescriptor<RequestT,ResponseT> method, CallOptions callOptions, Channel channel)
-
-
-
Method Detail
-
interceptCall
public <RequestT,ResponseT> ClientCall<RequestT,ResponseT> interceptCall(MethodDescriptor<RequestT,ResponseT> method, CallOptions callOptions, Channel channel)
- Specified by:
interceptCall
in interfaceClientInterceptor
-
-