Interface HttpJsonClientInterceptor (2.55.0)

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.

Methods

<ReqT,RespT>interceptCall(ApiMethodDescriptor<ReqT,RespT> method, HttpJsonCallOptions callOptions, HttpJsonChannel next)

public abstract HttpJsonClientCall<ReqT,RespT> <ReqT,RespT>interceptCall(ApiMethodDescriptor<ReqT,RespT> method, HttpJsonCallOptions callOptions, HttpJsonChannel next)

Intercept HttpJsonClientCall creation by the next HttpJsonChannel.

Parameters
Name Description
method ApiMethodDescriptor<ReqT,RespT>

the remote method to be called

callOptions HttpJsonCallOptions

the runtime options to be applied to this call

next HttpJsonChannel

the channel which is being intercepted

Returns
Type Description
HttpJsonClientCall<ReqT,RespT>

the call object for the remote operation, never null