Package io.vertx.grpc
Class BlockingServerInterceptor
- java.lang.Object
-
- io.vertx.grpc.BlockingServerInterceptor
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor
public class BlockingServerInterceptor extends Object implements io.grpc.ServerInterceptor
Wraps the ServerInterceptor and executes it on worker thread. All incoming events will be deferred until the interception is completed.- Author:
- Pavel Kopachevskiy, Ruslan Sennov
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> serverCall, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT,RespT> serverCallHandler)static io.grpc.ServerInterceptorwrap(Vertx vertx, io.grpc.ServerInterceptor interceptor)
-
-
-
Method Detail
-
wrap
public static io.grpc.ServerInterceptor wrap(Vertx vertx, io.grpc.ServerInterceptor interceptor)
-
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> serverCall, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT,RespT> serverCallHandler)- Specified by:
interceptCallin interfaceio.grpc.ServerInterceptor
-
-