Class InvocationIdInterceptor

  • All Implemented Interfaces:
    com.google.api.client.http.HttpExecuteInterceptor

    public final class InvocationIdInterceptor
    extends Object
    implements com.google.api.client.http.HttpExecuteInterceptor
    HTTP request interceptor to attach unique identifier i.e. invocationId to each new request and make sure to pass in the same identifier if request is retried.
    • Constructor Detail

      • InvocationIdInterceptor

        public InvocationIdInterceptor​(com.google.api.client.http.HttpExecuteInterceptor interceptor,
                                       RequestTracker tracker)
    • Method Detail

      • intercept

        public void intercept​(com.google.api.client.http.HttpRequest request)
                       throws IOException
        Specified by:
        intercept in interface com.google.api.client.http.HttpExecuteInterceptor
        Throws:
        IOException