public static class RequestExecutorProvider.WorkerThreadProvider extends Object implements RequestExecutorProvider
RequestExecutorProvider implementation, which checks if the
current Thread is a service Thread (see Threads.isService()).
If the current Thread is a service Thread - the
implementation returns a worker thread pool associated with the Request,
or, if the current Thread is not a service Thread - null
will be return to force the user code to be executed on the current Thread.RequestExecutorProvider.SameThreadProvider, RequestExecutorProvider.WorkerThreadProvider| Constructor and Description |
|---|
RequestExecutorProvider.WorkerThreadProvider() |
public RequestExecutorProvider.WorkerThreadProvider()
public Executor getExecutor(Request request)
RequestExecutorProvidergetExecutor in interface RequestExecutorProviderrequest - RequestExecutor to execute user's code associated with the
Request processing, or null if the Request has
to be executed on the current ThreadCopyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.