MediaWiki  master
JobQueueEnqueueUpdate Class Reference

Enqueue lazy-pushed jobs that have accumulated from JobQueueGroup. More...

Inheritance diagram for JobQueueEnqueueUpdate:
Collaboration diagram for JobQueueEnqueueUpdate:

Public Member Functions

 __construct ( $domain, array $jobs)
 
 doUpdate ()
 Perform the actual work. More...
 
 merge (MergeableUpdate $update)
 Merge this update with $update. More...
 

Private Attributes

array [] $jobsByDomain
 Map of (domain ID => IJobSpecification[]) More...
 

Detailed Description

Enqueue lazy-pushed jobs that have accumulated from JobQueueGroup.

Since
1.33

Definition at line 31 of file JobQueueEnqueueUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

JobQueueEnqueueUpdate::__construct (   $domain,
array  $jobs 
)
Parameters
string$domainDB domain ID
IJobSpecification[]$jobs

Definition at line 39 of file JobQueueEnqueueUpdate.php.

Member Function Documentation

◆ doUpdate()

JobQueueEnqueueUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 54 of file JobQueueEnqueueUpdate.php.

References MWExceptionHandler\logException(), and JobQueueGroup\singleton().

◆ merge()

JobQueueEnqueueUpdate::merge ( MergeableUpdate  $update)

Merge this update with $update.

Parameters
MergeableUpdate$updateUpdate of the same class type

Implements MergeableUpdate.

Definition at line 43 of file JobQueueEnqueueUpdate.php.

Member Data Documentation

◆ $jobsByDomain

array [] JobQueueEnqueueUpdate::$jobsByDomain
private

Map of (domain ID => IJobSpecification[])

Definition at line 33 of file JobQueueEnqueueUpdate.php.


The documentation for this class was generated from the following file: