Protocol
ConnectionPoolSource
Source of new connections for
EventLoopGroupConnectionPool.protocol ConnectionPoolSource
Topics
Associated Types
associatedtype Connection : ConnectionPoolItemAssociatedConnectionPoolItemthat will be returned bymakeConnection(logger:on:).
Instance Methods
func makeConnection(logger: Logger, on: any EventLoop) -> EventLoopFuture<Self.Connection>Creates a new connection.
See Also
Legacy connection pools
class EventLoopConnectionPoolHolds a collection of active connections that can be requested and later released back into the pool.class EventLoopGroupConnectionPoolHolds a collection of connection pools for eachEventLoopon anEventLoopGroup.protocol ConnectionPoolItemItem managed by a connection pool.enum ConnectionPoolErrorErrors thrown byEventLoopGroupConnectionPoolandEventLoopConnectionPoolregarding state.enum ConnectionPoolTimeoutErrorErrors thrown byEventLoopGroupConnectionPoolandEventLoopConnectionPoolregarding timeouts.