PHP Class Dusterio\AwsWorker\Jobs\AwsJob

Inheritance: extends Illuminate\Queue\Jobs\Job, implements Illuminate\Contracts\Queue\Job
Datei anzeigen Open project: dusterio/laravel-aws-worker

Protected Properties

Property Type Description
$job array The Amazon SQS job instance.

Public Methods

Method Description
__construct ( Illuminate\Container\Container $container, string $queue, array $job ) Create a new job instance.
attempts ( ) : integer Get the number of times the job has been attempted.
delete ( ) : void Actually, AWS will do this for us, we just need to mark the job as deleted
fire ( ) : void Fire the job.
getContainer ( ) : Illuminate\Container\Container Get the IoC container instance.
getJobId ( ) : string Get the job identifier.
getRawBody ( ) : string Get the raw body string for the job.
getSqs ( ) : Aws\Sqs\SqsClient We don't need an underlying SQS client instance.
getSqsJob ( ) : array Get the underlying raw SQS job.
release ( integer $delay ) : void AWS daemon will do this for us

Method Details

__construct() public method

Create a new job instance.
public __construct ( Illuminate\Container\Container $container, string $queue, array $job )
$container Illuminate\Container\Container
$queue string
$job array

attempts() public method

Get the number of times the job has been attempted.
public attempts ( ) : integer
return integer

delete() public method

Actually, AWS will do this for us, we just need to mark the job as deleted
public delete ( ) : void
return void

fire() public method

Fire the job.
public fire ( ) : void
return void

getContainer() public method

Get the IoC container instance.
public getContainer ( ) : Illuminate\Container\Container
return Illuminate\Container\Container

getJobId() public method

Get the job identifier.
public getJobId ( ) : string
return string

getRawBody() public method

Get the raw body string for the job.
public getRawBody ( ) : string
return string

getSqs() public method

We don't need an underlying SQS client instance.
public getSqs ( ) : Aws\Sqs\SqsClient
return Aws\Sqs\SqsClient

getSqsJob() public method

Get the underlying raw SQS job.
public getSqsJob ( ) : array
return array

release() public method

AWS daemon will do this for us
public release ( integer $delay ) : void
$delay integer
return void

Property Details

$job protected_oe property

The Amazon SQS job instance.
protected array $job
return array