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

SyncJob

Extends

Implements

Properties

protected

$job string

The class name of the job.

Default: null
protected

$payload string

The queue message data.

Default: null

Methods

public

__construct ( Container $container , $payload , $connectionName , $queue ) : void

Create a new job instance.

Parameters

  • $container Container
  • $payload string
  • $connectionName string
  • $queue string
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

Get the job identifier.

public

getRawBody ( ) : string

Get the raw body string for the job.

public

getQueue ( ) : string

Get the name of the queue the job belongs to.