PoolRecycler
class PoolRecycler implements Recycler
Properties
| protected Timer | $timer | ||
| protected int|null | $timerId |
Methods
__construct(Factory $manager, float $interval = 10.0, Timer|null $timer = null)
Create a pool recycler.
float
getInterval()
Get the maintenance interval in seconds.
void
start()
Start periodic pool maintenance.
void
stop()
Stop periodic pool maintenance.
void
maintainPools()
Evict idle pools and maintain live pools.
Details
at line 26
__construct(Factory $manager, float $interval = 10.0, Timer|null $timer = null)
Create a pool recycler.
at line 41
float
getInterval()
Get the maintenance interval in seconds.
at line 52
void
start()
Start periodic pool maintenance.
Starting during a request schedules worker-wide maintenance that affects every subsequently registered pool.
at line 80
void
stop()
Stop periodic pool maintenance.
Stopping disables automatic maintenance for every pool in the worker.
at line 93
protected void
maintainPools()
Evict idle pools and maintain live pools.