SqsQueue::pop()

Job|null pop(string $queue = null) Pop the next job off of the queue. Parameters string $queue Return Value Job|null

SqsQueue::getSqs()

SqsClient getSqs() Get the underlying SQS instance. Return Value SqsClient

SqsQueue::laterOn()

mixed laterOn(string $queue, DateTime|int $delay, string $job, mixed $data = '') Push a new job onto the queue after a delay. Parameters string $queue DateTime|int $delay string $job mixed $data Return Value mixed

SqsQueue::later()

mixed later(DateTime|int $delay, string $job, mixed $data = '', string $queue = null) Push a new job onto the queue after a delay. Parameters DateTime|int $delay string $job mixed $data string $queue Return Value mixed

SqsQueue::getQueue()

string getQueue(string|null $queue) Get the queue or return the default. Parameters string|null $queue Return Value string

SqsJob::resolveName()

string resolveName() Get the resolved name of the queued job class. Return Value string

SqsQueue

SqsQueue class SqsQueue extends Queue implements Queue (View source) Methods mixed pushOn(string $queue, string $job, mixed $data = '') Push a new job onto the queue. from Queue mixed laterOn(string $queue, DateTime|int $delay, string $job, mixed $data = '') Push a new job onto the queue after a delay. from Queue mixed bulk(array $jobs, mixed $data = '', string $queue = null) Push an array of jobs onto the queue. from Queue void setContainer(Container $container) Set the IoC c

SqsJob::__construct()

void __construct(Container $container, SqsClient $sqs, string $queue, array $job) Create a new job instance. Parameters Container $container SqsClient $sqs string $queue array $job Return Value void

SqsJob::payload()

array payload() Get the decoded body of the job. Return Value array

SqsJob::isReleased()

bool isReleased() Determine if the job was released back into the queue. Return Value bool