/home/techb158/ileadtechnology.com/vendor/laravel/framework/src/Illuminate/Queue
NameSizeModeActions
Capsule/-0755rm
Connectors/-0755rm
Console/-0755rm
Events/-0755rm
Failed/-0755rm
Jobs/-0755rm
BeanstalkdQueue.php41980755editdlrm
CallQueuedClosure.php16980644editdlrm
CallQueuedHandler.php46900644editdlrm
composer.json15820644editdlrm
DatabaseQueue.php94190644editdlrm
InteractsWithQueue.php13970644editdlrm
InvalidPayloadException.php3750644editdlrm
LICENSE.md10750644editdlrm
Listener.php56000755editdlrm
ListenerOptions.php7780644editdlrm
LuaScripts.php38630644editdlrm
ManuallyFailedException.php1250644editdlrm
MaxAttemptsExceededException.php1300644editdlrm
NullQueue.php14220644editdlrm
Queue.php74100755editdlrm
QueueManager.php62530755editdlrm
QueueServiceProvider.php76070755editdlrm
README.md12170644editdlrm
RedisQueue.php78170644editdlrm
SerializableClosure.php9560644editdlrm
SerializesAndRestoresModelIdentifiers.php34680644editdlrm
SerializesModels.php33510644editdlrm
SqsQueue.php41070755editdlrm
SyncQueue.php39450755editdlrm
Worker.php207420644editdlrm
WorkerOptions.php16210644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/laravel/framework/src/Illuminate/Queue/SqsQueue.php (4107B)
sqs = $sqs; $this->prefix = $prefix; $this->default = $default; $this->suffix = $suffix; } /** * Get the size of the queue. * * @param string|null $queue * @return int */ public function size($queue = null) { $response = $this->sqs->getQueueAttributes([ 'QueueUrl' => $this->getQueue($queue), 'AttributeNames' => ['ApproximateNumberOfMessages'], ]); $attributes = $response->get('Attributes'); return (int) $attributes['ApproximateNumberOfMessages']; } /** * Push a new job onto the queue. * * @param string $job * @param mixed $data * @param string|null $queue * @return mixed */ public function push($job, $data = '', $queue = null) { return $this->pushRaw($this->createPayload($job, $queue ?: $this->default, $data), $queue); } /** * Push a raw payload onto the queue. * * @param string $payload * @param string|null $queue * @param array $options * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { return $this->sqs->sendMessage([ 'QueueUrl' => $this->getQueue($queue), 'MessageBody' => $payload, ])->get('MessageId'); } /** * Push a new job onto the queue after a delay. * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job * @param mixed $data * @param string|null $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { return $this->sqs->sendMessage([ 'QueueUrl' => $this->getQueue($queue), 'MessageBody' => $this->createPayload($job, $queue ?: $this->default, $data), 'DelaySeconds' => $this->secondsUntil($delay), ])->get('MessageId'); } /** * Pop the next job off of the queue. * * @param string|null $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null) { $response = $this->sqs->receiveMessage([ 'QueueUrl' => $queue = $this->getQueue($queue), 'AttributeNames' => ['ApproximateReceiveCount'], ]); if (! is_null($response['Messages']) && count($response['Messages']) > 0) { return new SqsJob( $this->container, $this->sqs, $response['Messages'][0], $this->connectionName, $queue ); } } /** * Get the queue or return the default. * * @param string|null $queue * @return string */ public function getQueue($queue) { $queue = $queue ?: $this->default; return filter_var($queue, FILTER_VALIDATE_URL) === false ? rtrim($this->prefix, '/').'/'.Str::finish($queue, $this->suffix) : $queue; } /** * Get the underlying SQS instance. * * @return \Aws\Sqs\SqsClient */ public function getSqs() { return $this->sqs; } }