Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/sender/lib/posting/threadstrategy/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/sender/lib/posting/threadstrategy/ithreadstrategy.php

<?php

namespace Bitrix\Sender\Posting\ThreadStrategy;

use Bitrix\Main\ORM\Query\Result;

interface IThreadStrategy
{
	public const TEN = 'Ten';
	public const SINGLE = 'Single';

	function getRecipients(int $limit): Result;

	function fillThreads(): void;

	function lockThread(): void;
	function hasUnprocessedThreads(): bool;

	function getThreadId(): ?int;
	function setPostingId(int $postingId): IThreadStrategy;

	function updateStatus(string $status): bool;

	function lastThreadId(): int;
	function isProcessLimited(): bool;
	function checkThreads(): ?int;
}