| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class TaskContext extends Context implements ContextInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * task lock timeout in millisecond. For more details, see Locking. |
||
| 10 | * Default: 300000 |
||
| 11 | * |
||
| 12 | * @param int $taskLockTimeout |
||
| 13 | * |
||
| 14 | * @return $this |
||
| 15 | */ |
||
| 16 | 1 | public function setTaskLockTimeout(int $taskLockTimeout): self |
|
| 17 | { |
||
| 18 | 1 | $this->properties['taskLockTimeout'] = $taskLockTimeout; |
|
| 19 | |||
| 20 | 1 | return $this; |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Different based on task types. |
||
| 25 | * Defaults: |
||
| 26 | * Realtime index task 75 |
||
| 27 | * Batch index task 50 |
||
| 28 | * Merge/Append/Compaction task 25 |
||
| 29 | * Other tasks 0 |
||
| 30 | * |
||
| 31 | * @param int $priority |
||
| 32 | * |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | 10 | public function setPriority(int $priority): self |
|
| 40 | } |
||
| 41 | } |