QueueProcessorCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Class QueueProcessorCommand
Table of Contents
Constants
- MAX_MESSAGES_TO_PROCESS = 100000
- WAIT_BEFORE_RECONNECT_uS = 5000000
Properties
- $_processedMessages : mixed
- $entityManager : EntityManagerInterface
- $logService : LogServiceInterface|null
- $name : null
- $queueService : QueueServiceInterface
- $rabbitMqService : RabbitMqService|null
Methods
- __construct() : mixed
- QueueProcessorCommand constructor.
- configure() : mixed
- Configure
- execute() : int|null
- checkQueues() : mixed
- processMessageFromMagento() : mixed
- processQueues() : mixed
Constants
MAX_MESSAGES_TO_PROCESS
public
mixed
MAX_MESSAGES_TO_PROCESS
= 100000
WAIT_BEFORE_RECONNECT_uS
public
mixed
WAIT_BEFORE_RECONNECT_uS
= 5000000
Properties
$_processedMessages
private
mixed
$_processedMessages
= 0
$entityManager
private
EntityManagerInterface
$entityManager
$logService
private
LogServiceInterface|null
$logService
$name
private
null
$name
$queueService
private
QueueServiceInterface
$queueService
$rabbitMqService
private
RabbitMqService|null
$rabbitMqService
Methods
__construct()
QueueProcessorCommand constructor.
public
__construct([null $name = null ][, QueueServiceInterface|null $queueService = null ][, LogServiceInterface|null $logService = null ][, EntityManagerInterface|null $entityManager = null ][, RabbitMqService|null $rabbitMqService = null ]) : mixed
Parameters
- $name : null = null
- $queueService : QueueServiceInterface|null = null
- $logService : LogServiceInterface|null = null
- $entityManager : EntityManagerInterface|null = null
- $rabbitMqService : RabbitMqService|null = null
configure()
Configure
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int|nullcheckQueues()
private
checkQueues() : mixed
processMessageFromMagento()
private
processMessageFromMagento(mixed $message) : mixed
Parameters
- $message : mixed
processQueues()
private
processQueues(mixed $runCategory[, mixed $status = ['Pending', 'Processing'] ][, mixed $offset = 0 ][, mixed $limit = 500 ]) : mixed
Parameters
- $runCategory : mixed
- $status : mixed = ['Pending', 'Processing']
- $offset : mixed = 0
- $limit : mixed = 500