class Illuminate / Queue / Jobs / RedisJob
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

RedisJob

Extends

Implements

Properties

protected

$redis RedisQueue

The Redis queue instance.

Default: null
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

getRedisQueue ( ) : RedisQueue

Get the underlying Redis factory implementation.

public

getReservedJob ( ) : string

Get the underlying reserved Redis job.