<div dir="ltr"><div>I&#39;ve been looking a bit at this, but haven&#39;t seen anything really meant for this. Can you share a link to what you&#39;re doing with the ExecutorService btw? Maybe that can inspire someone...</div><div>Cheers<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 12:38 PM Michal Szynkiewicz &lt;<a href="mailto:mszynkie@redhat.com">mszynkie@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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>
_______________________________________________<br>
resteasy-dev mailing list<br>
<a href="mailto:resteasy-dev@lists.jboss.org" target="_blank">resteasy-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/resteasy-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/resteasy-dev</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>
<p style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0"><span>Alessio</span> <span>Soldano</span></p>
<p style="font-weight:normal;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>Associate Manager</span><span style="font-weight:normal;color:#aaa;margin:0"></span></p>
<p style="font-weight:normal;margin:0;font-size:10px;color:#999"><a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:&#39;overpass&#39;,sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span><br><br></span></a></p>




<table border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"> <img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a> </td>
</tr></tbody></table>

</div></div></div>