Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
dbrule.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Rule\Rules
;
4
5
use
Bitrix\Calendar\Core\Base\Result
;
6
use
Bitrix\Calendar\Core\Queue\Interfaces
;
7
use
Bitrix\Calendar\Core\Queue\Message\HandledMessage
;
8
use Bitrix\Calendar\Core;
9
use
Bitrix\Calendar\Core\Queue\Queue\Queue
;
10
11
abstract
class
DbRule
implements
Interfaces\RouteRule
12
{
17
public
function
route
(Interfaces\
Message
$message): ?
HandledMessage
18
{
20
if
($queue = $this->
getTargetQueue
($message))
21
{
22
return
(
new
HandledMessage
())
23
->
setMessage
($message)
24
->setQueue($queue)
25
->setHash($this->
getMessageHash
($message));
26
}
27
28
return
null
;
29
}
30
36
abstract
protected
function
getTargetQueue
(Interfaces\
Message
$message): ?
Queue
;
37
43
abstract
protected
function
getMessageHash
(Interfaces\
Message
$message): string;
44
}
Bitrix\Calendar\Core\Base\Result
Definition
result.php:6
Bitrix\Calendar\Core\Queue\Message\HandledMessage
Definition
handledmessage.php:10
Bitrix\Calendar\Core\Queue\Message\HandledMessage\setMessage
setMessage(Message $message)
Definition
handledmessage.php:33
Bitrix\Calendar\Core\Queue\Rule\Rules\DbRule
Definition
dbrule.php:12
Bitrix\Calendar\Core\Queue\Rule\Rules\DbRule\getMessageHash
getMessageHash(Interfaces\Message $message)
Bitrix\Calendar\Core\Queue\Rule\Rules\DbRule\getTargetQueue
getTargetQueue(Interfaces\Message $message)
Bitrix\Calendar\Core\Queue\Interfaces\Message
Definition
message.php:16
Bitrix\Calendar\Core\Queue\Interfaces\Queue
Definition
queue.php:5
Bitrix\Calendar\Core\Queue\Interfaces\RouteRule
Definition
routerule.php:8
Bitrix\Calendar\Core\Queue\Interfaces\RouteRule\route
route(Message $message)
Bitrix\Calendar\Core\Queue\Interfaces
Definition
consumer.php:3
Bitrix\Calendar\Core\Queue\Rule\Rules
Definition
dbrule.php:3
modules
calendar
lib
core
queue
rule
rules
dbrule.php
Создано системой
1.10.0