Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
consumerclientexample.php
1<?php
2
4
9use Bitrix\Calendar\Core\Queue;
10use Bitrix;
11
13{
14 protected function getConsumer(): Interfaces\Consumer
15 {
16 $queue = (new QueueFactory())->getById(QueueRegistry::QUEUE_LIST['Example']);
17 $consumer = new Simple($queue);
18 $consumer->setPackSize(100);
19 return $consumer;
20 }
21
22 protected function getProcessor(): Interfaces\Processor
23 {
24 return new ProcessorExample();
25 }
26}