Package com.google.protobuf
Interface BlockingService
-
public interface BlockingService
Blocking equivalent toService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Message
callBlockingMethod(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 aServiceException
if there is a failure, rather than passing the information to a callback.Descriptors.ServiceDescriptor
getDescriptorForType()
Equivalent toService.getDescriptorForType()
.Message
getRequestPrototype(Descriptors.MethodDescriptor method)
Message
getResponsePrototype(Descriptors.MethodDescriptor method)
-
-
-
Method Detail
-
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 aServiceException
if there is a failure, rather than passing the information to a callback.- Throws:
ServiceException
-
getRequestPrototype
Message getRequestPrototype(Descriptors.MethodDescriptor method)
-
getResponsePrototype
Message getResponsePrototype(Descriptors.MethodDescriptor method)
-
-