2016-08-23 04:20:49 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Interface that marks a DataUpdate as enqueuable via the JobQueue
|
|
|
|
|
*
|
|
|
|
|
* Such updates must be representable using IJobSpecification, so that
|
|
|
|
|
* they can be serialized into jobs and enqueued for later execution
|
|
|
|
|
*
|
2020-07-13 09:05:49 +00:00
|
|
|
* @stable to implement
|
2020-06-26 14:23:02 +00:00
|
|
|
*
|
2016-08-23 04:20:49 +00:00
|
|
|
* @since 1.27
|
|
|
|
|
*/
|
|
|
|
|
interface EnqueueableDataUpdate {
|
|
|
|
|
/**
|
2019-03-19 16:01:24 +00:00
|
|
|
* @return array (domain => DB domain ID, job => IJobSpecification)
|
2016-08-23 04:20:49 +00:00
|
|
|
*/
|
|
|
|
|
public function getAsJobSpecification();
|
|
|
|
|
}
|