Class DacConnectionPool() Foundation

Connection pool for DacSession() based connections.

Description

Represents a pool of reusable connections to a database or similar resource. This class manages the lifecycle of connections, allowing multiple clients to share a limited number of connections efficiently.

Connection pooling is used to improve performance by reusing established connections, avoiding the overhead of connecting/disconnecting repeatedly. This class ensures thread-safe access and supports configurable settings like pool size and timeouts.

Constructors
:new()
Creates a connection pool instance for a specific connection category.
Methods
:acquire()
Acquires a connection for a specific connection string.
:release()
Releases a connection through its session object.
:setMaxIdleTime()
Sets the idle timeout for the connection.
:setMaxPoolSize()
Sets the maximum connection pool size.
:shutdown()
Close all connections in the connection pool.
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.