<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>We are working on MicroProfile Rest Client 1.1 for SmallRye.</div><div>One of the requirements is to implement AsyncInvocationInterceptor, an interceptor for asynchronous client invocation.</div><div>The interceptor has two methods (more details in [1]):</div><div><ul><li>prepareContext, executed in the thread that calls the client</li><li>applyContext, executed in the thread that makes the request.<br></li></ul></div><div>Moreover, there is a single instance of the interceptor per request (not per client).</div><div><br></div><div>Does RestEasy have some feature that we could use to implement executing the applyContext method? We couldn&#39;t find anything that would work for us in the JAX-RS itself.</div><div><br></div><div>We implemented a wrapper for ExecutorService that decorates runnables with code that calls the interceptor but we&#39;re hoping there may be a better solution.</div><div><br></div><div>Thanks,</div><div>Michał</div><div><br></div><div><br></div><div><br></div><div>[1] <a href="https://github.com/eclipse/microprofile-rest-client/blob/1.1.X-service/spec/src/main/asciidoc/async.asciidoc">https://github.com/eclipse/microprofile-rest-client/blob/1.1.X-service/spec/src/main/asciidoc/async.asciidoc</a></div></div></div></div></div></div>