Class yii\queue\cli\SignalLoop
Inheritance | yii\queue\cli\SignalLoop » yii\base\BaseObject |
---|---|
Implements | yii\queue\cli\LoopInterface |
Available since version | 2.0.2 |
Class SignalLoop
Public Properties
Property | Type | Description | Defined 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
Property | Type | Description | Defined By |
---|---|---|---|
$queue | yii\queue\cli\Queue | yii\queue\cli\SignalLoop |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | yii\queue\cli\SignalLoop | |
canContinue() | Checks signals state. | yii\queue\cli\SignalLoop |
init() | Sets signal handlers. | yii\queue\cli\SignalLoop |
Property Details
Of signals to exit from listening of the queue.
Of signals to resume listening of the queue. For example: SIGCONT
Of signals to suspend listening of the queue. For example: SIGTSTP
Method Details
public void __construct ( $queue, array $config = [] ) | ||
$queue | yii\queue\cli\Queue | |
$config |
Checks signals state.
public boolean canContinue ( ) | ||
return | boolean | Whether to continue listening of the queue. |
---|
Sets signal handlers.
public void init ( ) |