Bitrix API

SingleThreadStrategy extends AbstractThreadStrategy

Table of Contents

Constants

THREAD_LOCKED  = -2
THREAD_NEEDED  = 1
THREAD_UNAVAILABLE  = -1
THREADS_COUNT  = 1

Methods

checkThreads()  : int|null
Check threads is available and not need to insert
fillThreads()  : void
Insert new posting threads with ignore of conflicts
finalize()  : mixed
Finalize thread activity
getRecipients()  : Result
getThreadId()  : int
get current thread id
hasUnprocessedThreads()  : bool
checking that all threads are completed
isProcessLimited()  : bool
Returns true if sending not available
lastThreadId()  : int
get last thread number
lockThread()  : int|null
lock thread for duplicate select
setPostingId()  : TenThreadsStrategy
updateStatus()  : bool
update status with expire date

Constants

Methods

checkThreads()

Check threads is available and not need to insert

public checkThreads() : int|null
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
int|null

getRecipients()

public getRecipients(mixed $limit) : Result
Parameters
$limit : mixed
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
Result

hasUnprocessedThreads()

checking that all threads are completed

public hasUnprocessedThreads() : bool
Return values
bool

isProcessLimited()

Returns true if sending not available

public isProcessLimited() : bool
Return values
bool

lockThread()

lock thread for duplicate select

public lockThread() : int|null
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
int|null

updateStatus()

update status with expire date

public updateStatus(mixed $status) : bool
Parameters
$status : mixed
Return values
bool

        
On this page

Search results