Package io.vertx.grpc

## Class BlockingServerInterceptor

- java.lang.Object
- - io.vertx.grpc.BlockingServerInterceptor

- All Implemented Interfaces:
    `ServerInterceptor`

      public class BlockingServerInterceptor
      extends Object
      implements 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> ServerCall.Listener<ReqT>` | `interceptCall​(ServerCall<ReqT,​RespT> serverCall, Metadata metadata, ServerCallHandler<ReqT,​RespT> serverCallHandler)` |
    `static ServerInterceptor` | `wrap​(Vertx vertx, ServerInterceptor interceptor)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### wrap

          public static ServerInterceptor wrap​(Vertx vertx,
                                               ServerInterceptor interceptor)

    - #### interceptCall

          public <ReqT,​RespT> ServerCall.Listener<ReqT> interceptCall​(ServerCall<ReqT,​RespT> serverCall,
                                                                            Metadata metadata,
                                                                            ServerCallHandler<ReqT,​RespT> serverCallHandler)

      Specified by:
        `interceptCall` in interface `ServerInterceptor`