Package com.google.api.gax.httpjson
Interface HttpJsonClientInterceptor
- All Known Implementing Classes:
HttpJsonLoggingInterceptor
public interface HttpJsonClientInterceptor
Interface for intercepting outgoing calls before they are dispatched by a
HttpJsonChannel.
The interceptor may be called for multiple calls by one or more
threads without completing the previous ones first. The implementations must be thread-safe.
-
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
HttpJsonClientCall<ReqT,RespT> interceptCall(ApiMethodDescriptor<ReqT, RespT> method, HttpJsonCallOptions callOptions, HttpJsonChannel next)
-
Method Details
-
interceptCall
<ReqT,RespT> HttpJsonClientCall<ReqT,RespT> interceptCall(ApiMethodDescriptor<ReqT, RespT> method, HttpJsonCallOptions callOptions, HttpJsonChannel next) - Parameters:
method- the remote method to be calledcallOptions- the runtime options to be applied to this callnext- the channel which is being intercepted- Returns:
- the call object for the remote operation, never
null
-