Interface HttpJsonClientInterceptor (2.18.2)

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
NameDescription
methodApiMethodDescriptor<ReqT,RespT>

the remote method to be called

callOptionsHttpJsonCallOptions

the runtime options to be applied to this call

nextHttpJsonChannel

the channel which is being intercepted

Returns
TypeDescription
HttpJsonClientCall<ReqT,RespT>

the call object for the remote operation, never null