Package com.google.protobuf
Interface BlockingService
public interface BlockingService
Blocking equivalent to
Service.-
Method Summary
Modifier and TypeMethodDescriptioncallBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request) Equivalent toService.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback<com.google.protobuf.Message>), 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().
-
Method Details
-
getDescriptorForType
Descriptors.ServiceDescriptor getDescriptorForType()Equivalent toService.getDescriptorForType(). -
callBlockingMethod
Message callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request) throws ServiceException Equivalent toService.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback<com.google.protobuf.Message>), 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
-
getResponsePrototype
-