Interface BlockingRpcChannel (3.19.4)

public interface BlockingRpcChannel

Abstract interface for a blocking RPC channel. BlockingRpcChannel is the blocking equivalent to 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.

Parameters
Name Description
method Descriptors.MethodDescriptor
controller RpcController
request Message
responsePrototype Message
Returns
Type Description
Message
Exceptions
Type Description
ServiceException