a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/Executor.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">Executor</a>&nbsp;executor)</pre>
<div class="block">Sets the executor for this <code>Endpoint</code> instance.

 The executor is used to dispatch an incoming request to
 the implementor object.

 If this <code>Endpoint</code> is published using the
 <code>publish(Object)</code> method and the specified server
 conte