Class ExceptionTransformingUnaryCallable<RequestT,​ResponseT>


  • public class ExceptionTransformingUnaryCallable<RequestT,​ResponseT>
    extends com.google.api.gax.rpc.UnaryCallable<RequestT,​ResponseT>
    Wrapper around a UnaryCallable which invokes an ExceptionTransformation for Throwables which occur on the stream.

    NOTE: This class could be pushed into the gax library, as it is not specific to the Google Ads API.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.api.core.ApiFuture<ResponseT> futureCall​(RequestT request, com.google.api.gax.rpc.ApiCallContext inputContext)  
      • Methods inherited from class com.google.api.gax.rpc.UnaryCallable

        call, call, futureCall, withDefaultCallContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • futureCall

        public com.google.api.core.ApiFuture<ResponseT> futureCall​(RequestT request,
                                                                   com.google.api.gax.rpc.ApiCallContext inputContext)
        Specified by:
        futureCall in class com.google.api.gax.rpc.UnaryCallable<RequestT,​ResponseT>