Interface BlockingService

Stay organized with collections Save and categorize content based on your preferences.
public interface BlockingService

Blocking equivalent to Service.

Methods

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

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

Equivalent to Service#callMethod, except that callBlockingMethod() returns the result of the RPC or throws a ServiceException if there is a failure, rather than passing the information to a callback.

Parameters
NameDescription
methodDescriptors.MethodDescriptor
controllerRpcController
requestMessage
Returns
TypeDescription
Message
Exceptions
TypeDescription
ServiceException

getDescriptorForType()

public abstract Descriptors.ServiceDescriptor getDescriptorForType()
Returns
TypeDescription
Descriptors.ServiceDescriptor

getRequestPrototype(Descriptors.MethodDescriptor method)

public abstract Message getRequestPrototype(Descriptors.MethodDescriptor method)
Parameter
NameDescription
methodDescriptors.MethodDescriptor
Returns
TypeDescription
Message

getResponsePrototype(Descriptors.MethodDescriptor method)

public abstract Message getResponsePrototype(Descriptors.MethodDescriptor method)
Parameter
NameDescription
methodDescriptors.MethodDescriptor
Returns
TypeDescription
Message