Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (CallbackInvoker $invoker, ResourceConnection $resource, MessageController $messageController, ConsumerConfigurationInterface $configuration, OperationProcessorFactory $operationProcessorFactory, LoggerInterface $logger) | |
process ($maxNumberOfMessages=null) | |
Class Consumer used to process OperationInterface messages.
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 29 of file MassConsumer.php.
__construct | ( | CallbackInvoker | $invoker, |
ResourceConnection | $resource, | ||
MessageController | $messageController, | ||
ConsumerConfigurationInterface | $configuration, | ||
OperationProcessorFactory | $operationProcessorFactory, | ||
LoggerInterface | $logger | ||
) |
Initialize dependencies.
CallbackInvoker | $invoker | |
ResourceConnection | $resource | |
MessageController | $messageController | |
ConsumerConfigurationInterface | $configuration | |
OperationProcessorFactory | $operationProcessorFactory | |
LoggerInterface | $logger |
Definition at line 71 of file MassConsumer.php.
process | ( | $maxNumberOfMessages = null | ) |
{Connects to a queue, consumes a message on the queue, and invoke a method to process the message contents.
int | null | $maxNumberOfMessages | if not specified - process all queued incoming messages and terminate, otherwise terminate execution after processing the specified number of messages |
Implements ConsumerInterface.
Definition at line 92 of file MassConsumer.php.