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
Name
Description
method
controller
request
getDescriptorForType()
public
abstract
Descriptors
.
ServiceDescriptor
getDescriptorForType
()
Equivalent to Service#getDescriptorForType .
getRequestPrototype(Descriptors.MethodDescriptor method)
public
abstract
Message
getRequestPrototype
(
Descriptors
.
MethodDescriptor
method
)
Equivalent to Service#getRequestPrototype .
getResponsePrototype(Descriptors.MethodDescriptor method)
public
abstract
Message
getResponsePrototype
(
Descriptors
.
MethodDescriptor
method
)
Equivalent to Service#getResponsePrototype .

