Class HandlerPoolManager
java.lang.Object
com.pixelservices.flash.components.http.pool.HandlerPoolManager
Manages all handler pools in the application, providing dynamic resizing
and monitoring capabilities.
-
Constructor Summary
ConstructorsConstructorDescriptionHandlerPoolManager
(FlashServer server, int defaultInitialSize, int defaultMinSize, int defaultMaxSize) Creates a new HandlerPoolManager with default pool sizes. -
Method Summary
Modifier and TypeMethodDescription<T extends RequestHandler>
HandlerPool<T> getOrCreatePool
(Class<T> handlerClass) Gets or creates a handler pool for the specified handler class.void
shutdown()
Shuts down the pool manager and all associated resources.
-
Constructor Details
-
HandlerPoolManager
public HandlerPoolManager(FlashServer server, int defaultInitialSize, int defaultMinSize, int defaultMaxSize) Creates a new HandlerPoolManager with default pool sizes.
-
-
Method Details
-
getOrCreatePool
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.
-