summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-18 16:34:42 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-18 16:34:42 +0100
commit95a255b0d4dc4d188022fcd11f0c8c03a76041b7 (patch)
tree5b1f4249dc18f43101b0aaf0f5bfe83ff7ae0fd1 /lib/public
parent6cdaf754b22159ca3b53fc03ae83261c1eb89acc (diff)
parenta9935bd49042e3c4a35630a980bf7e1c6d56ff20 (diff)
downloadnextcloud-server-95a255b0d4dc4d188022fcd11f0c8c03a76041b7.tar.gz
nextcloud-server-95a255b0d4dc4d188022fcd11f0c8c03a76041b7.zip
Merge pull request #21281 from owncloud/allow-di-for-background-jobs
Allow background jobs to be service names for DI
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/backgroundjob/ijob.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/public/backgroundjob/ijob.php b/lib/public/backgroundjob/ijob.php
index a24a5434521..8d970dbe781 100644
--- a/lib/public/backgroundjob/ijob.php
+++ b/lib/public/backgroundjob/ijob.php
@@ -36,12 +36,29 @@ interface IJob {
*
* @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job
* @param ILogger $logger
- * @return void
* @since 7.0.0
*/
public function execute($jobList, ILogger $logger = null);
/**
+ * @param int $id
+ * @since 7.0.0
+ */
+ public function setId($id);
+
+ /**
+ * @param int $lastRun
+ * @since 7.0.0
+ */
+ public function setLastRun($lastRun);
+
+ /**
+ * @param mixed $argument
+ * @since 7.0.0
+ */
+ public function setArgument($argument);
+
+ /**
* Get the id of the background job
* This id is determined by the job list when a job is added to the list
*