ConnectionPool
in package
FinalYes
Tags
Table of Contents
Methods
- __construct() : mixed
- close() : void
- evictIdleOlderThan() : void
- name() : string
- release() : void
- stats() : PoolStats
- take() : Connection
- warmToMinIdle() : void
- warnOnLeaks() : void
- withConnection() : T
Methods
__construct()
public
__construct(string $name, ConnectionFactory $factory, PoolConfig $config, Channel $channel[, EventDispatcherInterface|null $events = null ][, LoggerInterface $logger = new NullLogger() ]) : mixed
Parameters
- $name : string
- $factory : ConnectionFactory
- $config : PoolConfig
- $channel : Channel
- $events : EventDispatcherInterface|null = null
- $logger : LoggerInterface = new NullLogger()
close()
public
close(Duration $timeout) : void
Parameters
- $timeout : Duration
Tags
evictIdleOlderThan()
public
evictIdleOlderThan(int $cutoffNanos) : void
Parameters
- $cutoffNanos : int
name()
public
name() : string
Return values
stringrelease()
public
release(Connection $conn[, bool $poison = false ]) : void
Parameters
- $conn : Connection
- $poison : bool = false
stats()
public
stats() : PoolStats
Return values
PoolStatstake()
public
take([Duration|null $timeout = null ]) : Connection
Parameters
- $timeout : Duration|null = null
Return values
ConnectionwarmToMinIdle()
public
warmToMinIdle() : void
warnOnLeaks()
public
warnOnLeaks(int $nowNanos) : void
Parameters
- $nowNanos : int
withConnection()
public
withConnection(callable(Connection): T $fn) : T
Parameters
- $fn : callable(Connection): T