public interface AsyncInvocationInterceptor
newInterceptormethod of all registered
AsyncInvocationInterceptorFactoryproviders. The MP Rest Client implementation runtime will invoke the
premethod on the main thread prior to returning execution back to the calling method of the client interface. The runtime will invoke the
prepareContextmethod on the secondary thread before the client request is sent. The
prepareContextmethod should always be invoked before the
applyContextmethod is invoked, but due to the nature of multithreading, it is possible that
applyContextmethod may be invoked before the
prepareContextmethod has completed. Care should be taken when implementing this interface to avoid race conditions and deadlocks. Note that the order in which instances of the
AsyncInvocationInterceptorare invoked are determined by the priority of the
|Modifier and Type||Method and Description|
This method will be invoked by the MP Rest Client runtime on the "async" thread (i.e.
This method will be invoked by the MP Rest Client runtime on the "main" thread (i.e.