1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
eventdelayedsyncagent.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Core\Queue\Agent;
4
5use Bitrix\Calendar\Core\Queue\Consumer;
6use Bitrix\Calendar\Core\Queue\Interfaces;
7use Bitrix\Calendar\Core\Queue\Processor;
8use Bitrix\Calendar\Core\Queue\Queue\QueueFactory;
9use Bitrix\Calendar\Core\Queue\Queue\QueueRegistry;
10
12{
13 protected function getConsumer(): Interfaces\Consumer
14 {
15 $queue = (new QueueFactory())->getById(QueueRegistry::QUEUE_LIST['EventDelayedSync']);
16
17 return new Consumer\GroupHash($queue);
18 }
19
20 protected function getProcessor(): Interfaces\Processor
21 {
22 return new Processor\EventDelayedSync();
23 }
24}