class Illuminate / Queue / Jobs / SqsJob

SqsJob

Extends

Implements

Properties

protected

$sqs Aws\...\SqsClient

The Amazon SQS client instance.

Default: null
protected

$job array

The Amazon SQS job instance.

Default: null

Methods

public

__construct ( Container $container , Aws\...\SqsClient $sqs , array $job , $connectionName , $queue ) : void

Create a new job instance.

Parameters

  • $container Container
  • $sqs Aws\...\SqsClient
  • $job array
  • $connectionName string
  • $queue string
public

release ( $delay ) : void

Release the job back into the queue after (n) seconds.

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.

public

getSqs ( ) : Aws\...\SqsClient

Get the underlying SQS client instance.

public

getSqsJob ( ) : array

Get the underlying raw SQS job.