class
Illuminate
/
Queue
/
Jobs
/
DatabaseJob
You are viewing an older version of the documentation. For the latest, please visit master documentation.
DatabaseJob
Extends
Implements
Properties
protected
$job stdClass
The database job payload.
Default: null
Methods
public
__construct ( Container $container , DatabaseQueue $database , $job , $connectionName , $queue ) : void
Create a new job instance.
Parameters
- $container Container
- $database DatabaseQueue
- $job stdClass
- $connectionName string
- $queue string
public
release ( $delay ) : void
Release the job back into the queue.
Parameters
- $delay int
public
delete ( ) : void
Delete the job from the queue.
public
attempts ( ) : int
Get the number of times the job has been attempted.
public
getJobId ( ) : string
Get the job identifier.
public
getRawBody ( ) : string
Get the raw body string for the job.