3 namespace MediaWiki\Deferred
;
6 * Interface that marks a DataUpdate as enqueuable via the JobQueue
8 * Such updates must be representable using IJobSpecification, so that
9 * they can be serialized into jobs and enqueued for later execution
11 * @stable to implement
15 interface EnqueueableDataUpdate
{
17 * @return array (domain => DB domain ID, job => IJobSpecification)
18 * @phan-return array{domain: string, job: \IJobSpecification}
20 public function getAsJobSpecification();
23 /** @deprecated class alias since 1.42 */
24 class_alias( EnqueueableDataUpdate
::class, 'EnqueueableDataUpdate' );