1 | <?php |
||
5 | class Worker extends SiteResource |
||
6 | { |
||
7 | /** |
||
8 | * Resource type. |
||
9 | * |
||
10 | * @return string |
||
11 | */ |
||
12 | public static function resourceType() |
||
16 | |||
17 | /** |
||
18 | * Resource path (relative to Server URL). |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | public function resourcePath() |
||
26 | |||
27 | /** |
||
28 | * Queue connection. |
||
29 | * |
||
30 | * @return string|null |
||
31 | */ |
||
32 | public function connection() |
||
36 | |||
37 | /** |
||
38 | * Worker timeout. |
||
39 | * |
||
40 | * @return int |
||
41 | */ |
||
42 | public function timeout(): int |
||
46 | |||
47 | /** |
||
48 | * Max tries count. |
||
49 | * |
||
50 | * @return int |
||
51 | */ |
||
52 | public function maxTries(): int |
||
56 | |||
57 | /** |
||
58 | * Determines if worker is daemon. |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function daemon(): bool |
||
66 | } |
||
67 |