# Interface BlockingRpcChannel (3.19.4)

    public interface BlockingRpcChannel

Abstract interface for a blocking RPC channel. `BlockingRpcChannel` is the blocking
equivalent to [RpcChannel](https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.RpcChannel).

## Methods

### callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype)

    public abstract Message callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request, Message responsePrototype)

Call the given method of the remote service and blocks until it returns. `
callBlockingMethod()` is the blocking equivalent to [RpcChannel#callMethod](https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.RpcChannel#com_google_protobuf_RpcChannel_callMethod_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `method` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.MethodDescriptor` |
| `controller` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.RpcController` |
| `request` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message` |
| `responsePrototype` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ServiceException` |   |