composer package updates
[openemr.git] / vendor / illuminate / contracts / Queue / Job.php
blob8a907987a35ce01f6deca05265341835948e970a
1 <?php
3 namespace Illuminate\Contracts\Queue;
5 interface Job
7 /**
8 * Fire the job.
10 * @return void
12 public function fire();
14 /**
15 * Release the job back into the queue.
17 * @param int $delay
18 * @return mixed
20 public function release($delay = 0);
22 /**
23 * Delete the job from the queue.
25 * @return void
27 public function delete();
29 /**
30 * Determine if the job has been deleted.
32 * @return bool
34 public function isDeleted();
36 /**
37 * Determine if the job has been deleted or released.
39 * @return bool
41 public function isDeletedOrReleased();
43 /**
44 * Get the number of times the job has been attempted.
46 * @return int
48 public function attempts();
50 /**
51 * Process an exception that caused the job to fail.
53 * @param \Throwable $e
54 * @return void
56 public function failed($e);
58 /**
59 * Get the number of times to attempt a job.
61 * @return int|null
63 public function maxTries();
65 /**
66 * Get the number of seconds the job can run.
68 * @return int|null
70 public function timeout();
72 /**
73 * Get the timestamp indicating when the job should timeout.
75 * @return int|null
77 public function timeoutAt();
79 /**
80 * Get the name of the queued job class.
82 * @return string
84 public function getName();
86 /**
87 * Get the resolved name of the queued job class.
89 * Resolves the name of "wrapped" jobs such as class-based handlers.
91 * @return string
93 public function resolveName();
95 /**
96 * Get the name of the connection the job belongs to.
98 * @return string
100 public function getConnectionName();
103 * Get the name of the queue the job belongs to.
105 * @return string
107 public function getQueue();
110 * Get the raw body string for the job.
112 * @return string
114 public function getRawBody();