vertx / io.vertx.grpc / BlockingServerInterceptor

BlockingServerInterceptor

open class BlockingServerInterceptor : ServerInterceptor

Wraps the ServerInterceptor and executes it on worker thread. All incoming events will be deferred until the interception is completed.

Author
Pavel Kopachevskiy

Author
Ruslan Sennov

Functions

interceptCall

open fun <ReqT : Any, RespT : Any> interceptCall(serverCall: ServerCall<ReqT, RespT>, metadata: Metadata, serverCallHandler: ServerCallHandler<ReqT, RespT>): Listener<ReqT>

wrap

open static fun wrap(vertx: Vertx, interceptor: ServerInterceptor): ServerInterceptor