Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Notifications\JobQueueChangeNotificationSender Class Reference

ChangeNotificationSender based on a JobQueueGroup and ChangeNotificationJob. More...

+ Inheritance diagram for Wikibase\Repo\Notifications\JobQueueChangeNotificationSender:
+ Collaboration diagram for Wikibase\Repo\Notifications\JobQueueChangeNotificationSender:

Public Member Functions

 __construct ( $repoDB, LoggerInterface $logger, array $wikiDBNames=[], $batchSize=50, $jobQueueGroupFactory=null)
 
 sendNotification ( $siteID, array $changes)
 

Private Member Functions

 getJobSpecification (array $changes)
 

Private Attributes

 $repoDB
 
 $wikiDBNames
 
 $batchSize
 
 $jobQueueGroupFactory
 
 $logger
 

Detailed Description

ChangeNotificationSender based on a JobQueueGroup and ChangeNotificationJob.

Author
Daniel Kinzler
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::__construct (   $repoDB,
LoggerInterface  $logger,
array  $wikiDBNames = [],
  $batchSize = 50,
  $jobQueueGroupFactory = null 
)
Parameters
string | bool$repoDB
LoggerInterface$logger
string[]$wikiDBNamesAn associative array mapping site IDs to logical database names.
int$batchSizeNumber of changes to push per job.
callable | null$jobQueueGroupFactoryFunction that returns a JobQueueGroup for a given wiki.

Member Function Documentation

◆ getJobSpecification()

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::getJobSpecification ( array  $changes)
private
Parameters
Change[]$changes
Returns
JobSpecification

Set root job parameters for deduplication. Compare

See also
WikiPageUpdater::buildJobParams and
InjectRCRecordsJob::makeJobSpecification.

◆ sendNotification()

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::sendNotification (   $siteID,
array  $changes 
)
See also
ChangeNotificationSender::sendNotification
Parameters
string$siteIDThe client wiki's global site identifier, as used by sitelinks.
Change[]$changesThe list of changes to post to the wiki.

Implements Wikibase\Repo\Notifications\ChangeNotificationSender.

Member Data Documentation

◆ $batchSize

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::$batchSize
private

◆ $jobQueueGroupFactory

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::$jobQueueGroupFactory
private

◆ $logger

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::$logger
private

◆ $repoDB

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::$repoDB
private

◆ $wikiDBNames

Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::$wikiDBNames
private

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