class
Illuminate
/
Queue
/
Jobs
/
RedisJob
RedisJob
Extends
Implements
Properties
protected
$job string
The Redis raw job payload.
Default: null
protected
$decoded array
The JSON decoded version of "$job".
Default: null
protected
$reserved string
The Redis job payload inside the reserved queue.
Default: null
Methods
public
__construct ( Container $container , RedisQueue $redis , $job , $reserved , $connectionName , $queue ) : void
Create a new job instance.
Parameters
- $container Container
- $redis RedisQueue
- $job string
- $reserved string
- $connectionName string
- $queue string
public
getRawBody ( ) : string
Get the raw body string for the job.
public
delete ( ) : void
Delete the job from the queue.
public
release ( $delay ) : void
Release the job back into the queue after (n) seconds.
Parameters
- $delay int
public
attempts ( ) : int
Get the number of times the job has been attempted.
public
getJobId ( ) : string|null
Get the job identifier.
public
getReservedJob ( ) : string
Get the underlying reserved Redis job.