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
NameDescription
methodDescriptors.MethodDescriptor
controllerRpcController
requestMessage
responsePrototypeMessage
Returns
TypeDescription
Message
Exceptions
TypeDescription
ServiceException