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