Interface RequestExecutorProvider
-
- All Known Implementing Classes:
RequestExecutorProvider.SameThreadProvider,RequestExecutorProvider.WorkerThreadProvider
public interface RequestExecutorProviderAn implementation of this interface will be responsible for executing user's code inHttpHandler.service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response)and notifyingReadHandler,WriteHandlerregistered by the user.- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRequestExecutorProvider.SameThreadProviderTheRequestExecutorProviderimplementation, which always returns null to force the user code to be executed on the currentThread.static classRequestExecutorProvider.WorkerThreadProviderTheRequestExecutorProviderimplementation, which checks if the currentThreadis a serviceThread(seeThreads.isService()).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutorgetExecutor(Request request)
-