public abstract void setExecutor (Executor executor)

Sets the executor for this Endpoint instance. The executor is used to dispatch an incoming request to the implementor object. If this Endpoint is published using the publish(Object) method and the specified server context defines its own threading behavior, the executor may be ignored.

Parameters:
executor    The java.util.concurrent.Executor to be used to dispatch a request.

Exceptions:
SecurityException    If the instance does not support setting an executor for security reasons (e.g. the necessary permissions are missing).

See also:
java.util.concurrent.Executor