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 Summary
Fields Modifier and Type Field Description static StringGCCL_INVOCATION_ID_PREFIXstatic StringGOOG_API_CLIENT
-
Constructor Summary
Constructors Constructor Description InvocationIdInterceptor(com.google.api.client.http.HttpExecuteInterceptor interceptor, RequestTracker tracker)
-
-
-
Field Detail
-
GCCL_INVOCATION_ID_PREFIX
public static final String GCCL_INVOCATION_ID_PREFIX
- See Also:
- Constant Field Values
-
GOOG_API_CLIENT
public static final String GOOG_API_CLIENT
- See Also:
- Constant Field Values
-
-
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:
interceptin interfacecom.google.api.client.http.HttpExecuteInterceptor- Throws:
IOException
-
-