Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ConsumerFactory $consumerFactory, MaintenanceMode $maintenanceMode=null, $maintenanceSleepInterval=30) | |
__call ($name, $arguments) | |
Consumer runner class is used to run consumer, which name matches the magic method invoked on this class.
Is used to schedule consumers execution in crontab.xml as follows: <job name="consumerConsumerName" instance="Magento\MessageQueue\Model\ConsumerRunner" method="consumerName">
Where consumerName should be a valid name of consumer registered in some queue.xml
@api
Definition at line 25 of file ConsumerRunner.php.
__construct | ( | ConsumerFactory | $consumerFactory, |
MaintenanceMode | $maintenanceMode = null , |
||
$maintenanceSleepInterval = 30 |
|||
) |
Initialize dependencies.
ConsumerFactory | $consumerFactory | |
MaintenanceMode | $maintenanceMode | |
integer | $maintenanceSleepInterval |
Definition at line 49 of file ConsumerRunner.php.
__call | ( | $name, | |
$arguments | |||
) |
Process messages in queue using consumer, which name is equal to the current magic method name.
string | $name | |
array | $arguments |
LocalizedException |
Definition at line 67 of file ConsumerRunner.php.