Class InvocationIdInterceptor

java.lang.Object
com.google.cloud.hadoop.util.interceptors.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.
  • Field Details

  • Constructor Details

    • InvocationIdInterceptor

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

    • 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