Package org.restheart.handlers
Class WorkingThreadsPoolDispatcher
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.WorkingThreadsPoolDispatcher
- All Implemented Interfaces:
io.undertow.server.HttpHandler
- Author:
- Andrea Di Cesare <andrea@softinstigate.com> Dispatches the execution of the service to the Working Thread Pool This applies to Services annotated with @RegisterPlugin(blocking=true) Services with @RegisterPlugin(blocking=false) are not dispacthed to the Working Thread Pool and executed directly by the IO Thread
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of WorkingThreadsPoolDispatcherCreates a new instance of WorkingThreadsPoolDispatcher -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
WorkingThreadsPoolDispatcher
public WorkingThreadsPoolDispatcher()Creates a new instance of WorkingThreadsPoolDispatcher -
WorkingThreadsPoolDispatcher
Creates a new instance of WorkingThreadsPoolDispatcher- Parameters:
next-
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-