Class RequestExecutorProvider.WorkerThreadProvider
- java.lang.Object
-
- org.glassfish.grizzly.http.server.RequestExecutorProvider.WorkerThreadProvider
-
- All Implemented Interfaces:
RequestExecutorProvider
- Enclosing interface:
- RequestExecutorProvider
public static class RequestExecutorProvider.WorkerThreadProvider extends Object implements RequestExecutorProvider
TheRequestExecutorProviderimplementation, which checks if the currentThreadis a serviceThread(seeThreads.isService()). If the currentThreadis a serviceThread- the implementation returns a worker thread pool associated with theRequest, or, if the currentThreadis not a serviceThread- null will be return to force the user code to be executed on the currentThread.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.grizzly.http.server.RequestExecutorProvider
RequestExecutorProvider.SameThreadProvider, RequestExecutorProvider.WorkerThreadProvider
-
-
Constructor Summary
Constructors Constructor Description WorkerThreadProvider()
-
-
-
Method Detail
-
getExecutor
public Executor getExecutor(Request request)
Description copied from interface:RequestExecutorProvider- Specified by:
getExecutorin interfaceRequestExecutorProvider- Parameters:
request-Request- Returns:
- the
Executorto execute user's code associated with theRequestprocessing, or null if theRequesthas to be executed on the currentThread
-
-