Class yii\queue\cli\SignalLoop

Inheritanceyii\queue\cli\SignalLoop » yii\base\BaseObject
Implementsyii\queue\cli\LoopInterface
Available since version2.0.2

Class SignalLoop

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$exitSignals array Of signals to exit from listening of the queue. yii\queue\cli\SignalLoop
$resumeSignals array Of signals to resume listening of the queue. yii\queue\cli\SignalLoop
$suspendSignals array Of signals to suspend listening of the queue. yii\queue\cli\SignalLoop

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$queue yii\queue\cli\Queue yii\queue\cli\SignalLoop

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() yii\queue\cli\SignalLoop
canContinue() Checks signals state. yii\queue\cli\SignalLoop
init() Sets signal handlers. yii\queue\cli\SignalLoop

Property Details

$exitSignals public property

Of signals to exit from listening of the queue.

public array $exitSignals = [1521]
$queue protected property
protected yii\queue\cli\Queue $queue null
$resumeSignals public property

Of signals to resume listening of the queue. For example: SIGCONT

public array $resumeSignals = []
$suspendSignals public property

Of signals to suspend listening of the queue. For example: SIGTSTP

public array $suspendSignals = []

Method Details

__construct() public method

public void __construct ( $queue, array $config = [] )
$queue yii\queue\cli\Queue
$config
canContinue() public method

Checks signals state.

public boolean canContinue ( )
return boolean

Whether to continue listening of the queue.

init() public method

Sets signal handlers.

public void init ( )