Class HandlerPoolManager

java.lang.Object
com.pixelservices.flash.components.http.pool.HandlerPoolManager

public class HandlerPoolManager extends Object
Manages all handler pools in the application, providing dynamic resizing and monitoring capabilities.
  • Constructor Details

    • HandlerPoolManager

      public HandlerPoolManager(FlashServer server, int defaultInitialSize, int defaultMinSize, int defaultMaxSize)
      Creates a new HandlerPoolManager with default pool sizes.
  • Method Details

    • getOrCreatePool

      public <T extends RequestHandler> HandlerPool<T> getOrCreatePool(Class<T> handlerClass)
      Gets or creates a handler pool for the specified handler class. For SimpleHandlerWrapper, uses the handler ID to create separate pools.
    • shutdown

      public void shutdown()
      Shuts down the pool manager and all associated resources.