Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс AbstractThreadStrategy
+ Граф наследования:AbstractThreadStrategy:

Открытые члены

 fillThreads ()
 
 lockThread ()
 
 checkThreads ()
 
 updateStatus (string $status)
 
 hasUnprocessedThreads ()
 
 getThreadId ()
 
 lastThreadId ()
 
 setGroupStateId (int $groupStateId)
 
 finalize ()
 
 getOffset ()
 
 setPerPage (int $perPage)
 
 isProcessLimited ()
 

Открытые атрибуты

const THREAD_UNAVAILABLE = -1
 
const THREAD_LOCKED = -2
 
const THREAD_NEEDED = 1
 
- Открытые атрибуты унаследованные от ThreadStrategy
const TEN = 'Ten'
 
const SINGLE = 'Single'
 

Защищенные члены

 checkLock ()
 

Защищенные данные

 $threadId
 
 $groupStateId
 
 $offset
 
 $perPage = 100000
 
const GROUP_THREAD_LOCK_KEY = 'group_thread_'
 

Подробное описание

См. определение в файле abstractthreadstrategy.php строка 16

Методы

◆ checkLock()

checkLock ( )
protected

wait while threads are calculating

Возвращает
bool

Переопределяется в SingleThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 234

◆ checkThreads()

checkThreads ( )

Check threads is available and not need to insert

Возвращает
int|null
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 110

◆ fillThreads()

fillThreads ( )

Insert new group threads with ignore of conflicts

Возвращает
void

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 37

◆ finalize()

finalize ( )

Finalize thread activity

См. определение в файле abstractthreadstrategy.php строка 250

◆ getOffset()

getOffset ( )

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 282

◆ getThreadId()

getThreadId ( )

get current thread id

Возвращает
int

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 204

◆ hasUnprocessedThreads()

hasUnprocessedThreads ( )

checking that all threads are completed

Возвращает
bool

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 177

◆ isProcessLimited()

isProcessLimited ( )

Returns true if sending not available

Возвращает
bool

Замещает ThreadStrategy.

Переопределяется в TenThreadsStrategy.

См. определение в файле abstractthreadstrategy.php строка 296

◆ lastThreadId()

lastThreadId ( )

get last thread number

Возвращает
int

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 213

◆ lockThread()

lockThread ( )

lock thread for duplicate select

Возвращает
int|null
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 60

◆ setGroupStateId()

setGroupStateId ( int $groupStateId)
Аргументы
int$groupStateId
Возвращает
ThreadStrategy

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 223

◆ setPerPage()

setPerPage ( int $perPage)

См. определение в файле abstractthreadstrategy.php строка 287

◆ updateStatus()

updateStatus ( string $status)

update status with expire date

Аргументы
$threadId
$status

Замещает ThreadStrategy.

См. определение в файле abstractthreadstrategy.php строка 144

Данные класса

◆ $groupStateId

$groupStateId
protected

См. определение в файле abstractthreadstrategy.php строка 23

◆ $offset

$offset
protected

См. определение в файле abstractthreadstrategy.php строка 24

◆ $perPage

$perPage = 100000
protected

См. определение в файле abstractthreadstrategy.php строка 25

◆ $threadId

$threadId
protected

См. определение в файле abstractthreadstrategy.php строка 21

◆ GROUP_THREAD_LOCK_KEY

const GROUP_THREAD_LOCK_KEY = 'group_thread_'
protected

См. определение в файле abstractthreadstrategy.php строка 26

◆ THREAD_LOCKED

const THREAD_LOCKED = -2

См. определение в файле abstractthreadstrategy.php строка 28

◆ THREAD_NEEDED

const THREAD_NEEDED = 1

См. определение в файле abstractthreadstrategy.php строка 29

◆ THREAD_UNAVAILABLE

const THREAD_UNAVAILABLE = -1

См. определение в файле abstractthreadstrategy.php строка 27