Nexus API Reference

EntityManagerPool
in package

FinalYes
Tags
psalm-api
psalm-type

EmMeta = array{conn: Connection}

Table of Contents

Methods

__construct()  : mixed
close()  : void
`$_timeout` is kept for API symmetry with ConnectionPool::close(); the current drain is sync, no deadline needed yet.
name()  : string
release()  : void
stats()  : EmPoolStats
take()  : PooledEntityManager
withEntityManager()  : T

Methods

__construct()

public __construct(string $name, EntityManagerFactory $factory, ConnectionPool $connPool, EmPoolConfig $config, Channel<string|int, PooledEntityManager$channel[, EventDispatcherInterface|null $events = null ][, LoggerInterface $logger = new NullLogger() ]) : mixed
Parameters
$name : string
$factory : EntityManagerFactory
$connPool : ConnectionPool
$config : EmPoolConfig
$channel : Channel<string|int, PooledEntityManager>
$events : EventDispatcherInterface|null = null
$logger : LoggerInterface = new NullLogger()

close()

`$_timeout` is kept for API symmetry with ConnectionPool::close(); the current drain is sync, no deadline needed yet.

public close(Duration $_timeout) : void
Parameters
$_timeout : Duration

withEntityManager()

public withEntityManager(callable(EntityManagerInterface): T $fn) : T
Parameters
$fn : callable(EntityManagerInterface): T
Tags
template
Return values
T
On this page

Search results