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

__construct(Pool|null $pool = null)

No description

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

Parameters

Pool|null $pool

at line 42
void clear()

Clear the timer.

Return Value

void

at line 54
bool isLowFrequency()

Always returns false since flushing is handled by the timer.

Return Value

bool