PoolProxy
class PoolProxy implements InvalidatesPool
Methods
Create a proxy that resolves its current pool per operation.
Resolve the current pool for this proxy's definition.
Invoke a synchronous method on a borrowed object.
Apply proxy-held state to a freshly borrowed object.
Get this proxy's immutable pool definition.
Return the pool's fully qualified registry name.
Remove and close this proxy's current shared pool.
Details
at line 18
__construct(PoolDefinition $definition, Closure $createCallback, Factory $pools, Closure|null $releaseCallback = null)
Create a proxy that resolves its current pool per operation.
at line 29
protected ObjectPool
pool()
Resolve the current pool for this proxy's definition.
at line 37
protected Lease
lease()
Borrow an object under an exactly-once lease.
at line 55
protected mixed
invoke(string $method, array $arguments)
Invoke a synchronous method on a borrowed object.
at line 73
protected void
configureBorrowed(object $object)
Apply proxy-held state to a freshly borrowed object.
at line 80
PoolDefinition
getDefinition()
Get this proxy's immutable pool definition.
at line 88
string
getPoolName()
Return the pool's fully qualified registry name.
at line 96
bool
invalidatePool()
Remove and close this proxy's current shared pool.