com.google.protobuf
Interface BlockingService


public interface BlockingService

Blocking equivalent to Service.

Author:
[email protected] Kenton Varda, [email protected] Chris Povirk

Method Summary
 Message callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request)
          Equivalent to Service.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback), 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.
 Descriptors.ServiceDescriptor getDescriptorForType()
          Equivalent to Service.getDescriptorForType().
 Message getRequestPrototype(Descriptors.MethodDescriptor method)
          Equivalent to Service.getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor).
 Message getResponsePrototype(Descriptors.MethodDescriptor method)
          Equivalent to Service.getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor).
 

Method Detail

getDescriptorForType

Descriptors.ServiceDescriptor getDescriptorForType()
Equivalent to Service.getDescriptorForType().


callBlockingMethod

Message callBlockingMethod(Descriptors.MethodDescriptor method,
                           RpcController controller,
                           Message request)
                           throws ServiceException
Equivalent to Service.callMethod(com.google.protobuf.Descriptors.MethodDescriptor, com.google.protobuf.RpcController, com.google.protobuf.Message, com.google.protobuf.RpcCallback), 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.

Throws:
ServiceException

getRequestPrototype

Message getRequestPrototype(Descriptors.MethodDescriptor method)
Equivalent to Service.getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor).


getResponsePrototype

Message getResponsePrototype(Descriptors.MethodDescriptor method)
Equivalent to Service.getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor).



Copyright © 2008-2011 Google. All Rights Reserved.