Package pl.morgwai.base.grpc.scopes
Class ServerContextInterceptor
- java.lang.Object
-
- pl.morgwai.base.grpc.scopes.ServerContextInterceptor
-
- All Implemented Interfaces:
ServerInterceptor
public class ServerContextInterceptor extends Object implements ServerInterceptor
Creates a newServerRpcContext
for each new RPC (ServerCall
) and a newListenerEventContext
for eachListener
call and creation. An instance can be obtained fromGrpcModule.serverInterceptor
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <RequestT,ResponseT>
ServerCall.Listener<RequestT>interceptCall(ServerCall<RequestT,ResponseT> call, Metadata headers, ServerCallHandler<RequestT,ResponseT> handler)
-
-
-
Method Detail
-
interceptCall
public <RequestT,ResponseT> ServerCall.Listener<RequestT> interceptCall(ServerCall<RequestT,ResponseT> call, Metadata headers, ServerCallHandler<RequestT,ResponseT> handler)
- Specified by:
interceptCall
in interfaceServerInterceptor
-
-