ConstantFrequency
class ConstantFrequency implements ClearableFrequencyInterface, LowFrequencyInterface
A frequency implementation that checks idle connections at a constant interval.
Unlike Frequency which tracks actual usage, this periodically probes one idle connection regardless of usage patterns.
Properties
| protected Timer | $timer | ||
| protected int|null | $timerId | ||
| protected int | $interval | Flush interval in milliseconds. |
Methods
void
clear()
Clear the timer.
bool
isLowFrequency()
Always returns false since flushing is handled by the timer.
Details
at line 26
__construct(Pool|null $pool = null)
No description
at line 42
void
clear()
Clear the timer.
at line 54
bool
isLowFrequency()
Always returns false since flushing is handled by the timer.