ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Bucket.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\BackgroundTasks;
20
23
29interface Bucket extends BucketMeta
30{
31 public function getUserId(): int;
32
33 public function setUserId(int $user_id): void;
34
38 public function setPercentage(Task $task, int $percentage): void;
39
40 public function getOverallPercentage(): int;
41
42 public function setOverallPercentage(int $percentage): void;
43
44 public function setCurrentTask(Task $task): void;
45
46 public function getCurrentTask(): Task;
47
48 public function hasCurrentTask(): bool;
49
50 public function setTask(Task $task): void;
51
52 public function getTask(): Task;
53
54 public function setState(int $state): void;
55
56 public function getState(): int;
57
62 public function checkIntegrity(): bool;
63
67 public function userInteraction(Option $option): void;
68
69 public function getDescription(): string;
70
71 public function getTitle(): string;
72
76 public function heartbeat(): void;
77
78 public function setLastHeartbeat(int $timestamp): void;
79
83 public function getLastHeartbeat(): int;
84}
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70
getLastHeartbeat()
When was the last time that something happened on this bucket?
setPercentage(Task $task, int $percentage)
Used by a job to notify his percentage.
userInteraction(Option $option)
Let the user interact with the bucket task queue.
setLastHeartbeat(int $timestamp)
setOverallPercentage(int $percentage)
heartbeat()
There was something going on in the bucket, it's still working.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...