Interface BlockingService (3.19.4)

  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
controller
request
Returns
Type
Description
Exceptions
Type
Description

getDescriptorForType()

  public 
  
 abstract 
  
 Descriptors 
 . 
 ServiceDescriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description

getRequestPrototype(Descriptors.MethodDescriptor method)

  public 
  
 abstract 
  
 Message 
  
 getRequestPrototype 
 ( 
 Descriptors 
 . 
 MethodDescriptor 
  
 method 
 ) 
 

Equivalent to Service#getRequestPrototype .

Parameter
Name
Description
Returns
Type
Description

getResponsePrototype(Descriptors.MethodDescriptor method)

  public 
  
 abstract 
  
 Message 
  
 getResponsePrototype 
 ( 
 Descriptors 
 . 
 MethodDescriptor 
  
 method 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: