PushDelayedRule::getMode

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. PushDelayedRule
  4. getMode
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/queue/rule/rules/pushdelayedrule.php
  • Класс: BitrixCalendarCoreQueueRuleRulesPushDelayedRule
  • Вызов: PushDelayedRule::getMode
private function getMode(InterfacesMessage $message): ?int
{
	$routingKey = $message->getHeader(Dictionary::HEADER_KEYS['routingKey']);
	if ($routingKey === PushManager::QUEUE_ROUTE_KEY_SECTION)
	{
		return self::MODE_SECTION;
	}
	elseif ($routingKey === PushManager::QUEUE_ROUTE_KEY_CONNECTION)
	{
		return self::MODE_CONNECTION;
	}

	return null;
}

Добавить комментарий