Class ExceptionTransformingServerStreamingCallable<RequestT,​ResponseT>


  • public class ExceptionTransformingServerStreamingCallable<RequestT,​ResponseT>
    extends com.google.api.gax.rpc.ServerStreamingCallable<RequestT,​ResponseT>
    Wrapper around a ServerStreamingCallable 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
      void call​(RequestT request, com.google.api.gax.rpc.ResponseObserver<ResponseT> responseObserver, com.google.api.gax.rpc.ApiCallContext context)  
      • Methods inherited from class com.google.api.gax.rpc.ServerStreamingCallable

        all, blockingServerStreamingCall, blockingServerStreamingCall, call, call, call, first, serverStreamingCall, serverStreamingCall, withDefaultCallContext
      • Methods inherited from class java.lang.Object

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

      • ExceptionTransformingServerStreamingCallable

        public ExceptionTransformingServerStreamingCallable​(com.google.api.gax.rpc.ServerStreamingCallable<RequestT,​ResponseT> innerCallable,
                                                            ExceptionTransformation exceptionTransformation)
    • Method Detail

      • call

        public void call​(RequestT request,
                         com.google.api.gax.rpc.ResponseObserver<ResponseT> responseObserver,
                         com.google.api.gax.rpc.ApiCallContext context)
        Specified by:
        call in class com.google.api.gax.rpc.ServerStreamingCallable<RequestT,​ResponseT>