1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
consumerclientexample.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Examples
;
4
5
use
Bitrix\Calendar\Core\Queue\Consumer\Simple
;
6
use
Bitrix\Calendar\Core\Queue\Interfaces
;
7
use
Bitrix\Calendar\Core\Queue\Queue\QueueFactory
;
8
use
Bitrix\Calendar\Core\Queue\Queue\QueueRegistry
;
9
use Bitrix\Calendar\Core\Queue;
10
use
Bitrix
;
11
12
class
ConsumerClientExample
extends
Queue\Agent\BaseAgent
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
}
Bitrix\Calendar\Core\Queue\Agent\BaseAgent
Определения
baseagent.php:12
Bitrix\Calendar\Core\Queue\Consumer\Simple
Определения
simple.php:13
Bitrix\Calendar\Core\Queue\Examples\ConsumerClientExample
Определения
consumerclientexample.php:13
Bitrix\Calendar\Core\Queue\Examples\ConsumerClientExample\getProcessor
getProcessor()
Определения
consumerclientexample.php:22
Bitrix\Calendar\Core\Queue\Examples\ConsumerClientExample\getConsumer
getConsumer()
Определения
consumerclientexample.php:14
Bitrix\Calendar\Core\Queue\Examples\ProcessorExample
Определения
processorexample.php:11
Bitrix\Calendar\Core\Queue\Queue\QueueFactory
Определения
queuefactory.php:6
Bitrix\Calendar\Core\Queue\Queue\QueueRegistry
Определения
queueregistry.php:7
Bitrix\Calendar\Core\Queue\Consumer
Определения
grouphash.php:3
Bitrix\Calendar\Core\Queue\Examples
Определения
consumerclientexample.php:3
Bitrix\Calendar\Core\Queue\Interfaces
Определения
consumer.php:3
Bitrix\Calendar\Core\Queue\Processor
Определения
eventattendeesupdate.php:3
Bitrix
bitrix
modules
calendar
lib
core
queue
examples
consumerclientexample.php
Создано системой
1.14.0