DatabaseJobRecord
class DatabaseJobRecord
Traits
Properties
protected stdClass | $record | The underlying job record. |
Methods
int
from
InteractsWithTime
int
from
InteractsWithTime
void
int
increment()
Increment the number of times the job has been attempted.
int
touch()
Update the "reserved at" timestamp of the job.
mixed
__get(string $key)
Dynamically access the underlying job information.
Details
in
InteractsWithTime at line 16
protected int
secondsUntil(DateTimeInterface $delay)
Get the number of seconds until the given DateTime.
in
InteractsWithTime at line 29
protected int
availableAt(DateTimeInterface|int $delay = 0)
Get the "available at" UNIX timestamp.
in
InteractsWithTime at line 41
protected int
currentTime()
Get the current system time as a UNIX timestamp.
at line 24
void
__construct(stdClass $record)
Create a new job record instance.
at line 34
int
increment()
Increment the number of times the job has been attempted.
at line 46
int
touch()
Update the "reserved at" timestamp of the job.
at line 59
mixed
__get(string $key)
Dynamically access the underlying job information.