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
with
Blocking.
For non-annotated methods, the interceptor acts as a pass-through.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyVirtual(String name) protected io.quarkus.arc.ManagedContext<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next) protected boolean
-
Constructor Details
-
BlockingServerInterceptor
-
-
Method Details
-
apply
-
applyVirtual
-
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
-
isExecutable
protected boolean isExecutable() -
getRequestContext
protected io.quarkus.arc.ManagedContext getRequestContext()
-