ChangeNotificationSender based on a JobQueueGroup and ChangeNotificationJob.
More...
|
| __construct ( $repoDB, LoggerInterface $logger, array $wikiDBNames=[], $batchSize=50, $jobQueueGroupFactory=null) |
|
| sendNotification ( $siteID, array $changes) |
|
ChangeNotificationSender based on a JobQueueGroup and ChangeNotificationJob.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Marius Hoch
◆ __construct()
Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::__construct |
( |
|
$repoDB, |
|
|
LoggerInterface |
$logger, |
|
|
array |
$wikiDBNames = [] , |
|
|
|
$batchSize = 50 , |
|
|
|
$jobQueueGroupFactory = null |
|
) |
| |
- Parameters
-
string | bool | $repoDB | |
LoggerInterface | $logger | |
string[] | $wikiDBNames | An associative array mapping site IDs to logical database names. |
int | $batchSize | Number of changes to push per job. |
callable | null | $jobQueueGroupFactory | Function that returns a JobQueueGroup for a given wiki. |
◆ getJobSpecification()
Wikibase\Repo\Notifications\JobQueueChangeNotificationSender::getJobSpecification |
( |
array |
$changes | ) |
|
|
private |
- Parameters
-
- 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 | $siteID | The client wiki's global site identifier, as used by sitelinks. |
Change[] | $changes | The list of changes to post to the wiki. |
Implements Wikibase\Repo\Notifications\ChangeNotificationSender.
◆ $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: