Class WorkingThreadsPoolDispatcher

java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.WorkingThreadsPoolDispatcher
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class WorkingThreadsPoolDispatcher extends PipelinedHandler
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
  • Constructor Details

    • WorkingThreadsPoolDispatcher

      public WorkingThreadsPoolDispatcher()
      Creates a new instance of WorkingThreadsPoolDispatcher
    • WorkingThreadsPoolDispatcher

      public WorkingThreadsPoolDispatcher(PipelinedHandler next)
      Creates a new instance of WorkingThreadsPoolDispatcher
      Parameters:
      next -
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Parameters:
      exchange -
      Throws:
      Exception