HttpHandler#service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response)
and notifying ReadHandler, WriteHandler registered by the user.
| Modifier and Type | Class and Description |
|---|---|
| public static class | RequestExecutorProvider.
The |
| public static class | RequestExecutorProvider.
The |
| Modifier and Type | Method and Description |
|---|---|
| public Executor |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor(final Request request) Returns the | |
RequestExecutorProvider implementation, which always returns null to force the user code to be
executed on the current Thread.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Executor | getExecutor(final Request request)
Implements org. Returns the |
| SameThreadProvider | back to summary |
|---|---|
| public SameThreadProvider() | |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor(final Request request) Implements org. Doc from org. Returns the
| |
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 returned to force the user code to be executed on the current
Thread.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Executor | getExecutor(final Request request)
Implements org. Returns the |
| WorkerThreadProvider | back to summary |
|---|---|
| public WorkerThreadProvider() | |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor(final Request request) Implements org. Doc from org. Returns the
| |