Interface BlockingService
public interface BlockingService
Blocking equivalent to
Service.-
Method Summary
Modifier and TypeMethodDescriptioncallBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request) Equivalent toService.callMethod(Descriptors.MethodDescriptor, RpcController, Message, RpcCallback), except thatcallBlockingMethod()returns the result of the RPC or throws aServiceExceptionif there is a failure, rather than passing the information to a callback.Equivalent toService.getDescriptorForType().Equivalent toService.getRequestPrototype(Descriptors.MethodDescriptor).Equivalent toService.getResponsePrototype(Descriptors.MethodDescriptor).
-
Method Details
-
getDescriptorForType
Descriptors.ServiceDescriptor getDescriptorForType()Equivalent toService.getDescriptorForType(). -
callBlockingMethod
Message callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request) throws ServiceException Equivalent toService.callMethod(Descriptors.MethodDescriptor, RpcController, Message, RpcCallback), except thatcallBlockingMethod()returns the result of the RPC or throws aServiceExceptionif there is a failure, rather than passing the information to a callback.- Throws:
ServiceException
-
getRequestPrototype
Equivalent toService.getRequestPrototype(Descriptors.MethodDescriptor). -
getResponsePrototype
Equivalent toService.getResponsePrototype(Descriptors.MethodDescriptor).
-