Class BlockingServerInterceptor
- java.lang.Object
-
- io.quarkus.grpc.runtime.supports.blocking.BlockingServerInterceptor
-
public class BlockingServerInterceptor extends Object implements io.grpc.ServerInterceptor, Function<String,Boolean>
gRPC Server interceptor offloading the execution of the gRPC method on a worker thread if the method is annotated withBlocking. For non-annotated methods, the interceptor acts as a pass-through.
-
-
Constructor Summary
Constructors Constructor Description BlockingServerInterceptor(io.vertx.core.Vertx vertx, List<String> blockingMethods, boolean devMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanapply(String name)protected io.quarkus.arc.ManagedContextgetRequestContext()<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
-
-
-
Method Detail
-
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)- Specified by:
interceptCallin interfaceio.grpc.ServerInterceptor
-
getRequestContext
protected io.quarkus.arc.ManagedContext getRequestContext()
-
-