1 | <?php |
||
20 | class SqsFifoQueue extends SqsQueue |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $options; |
||
26 | |||
27 | /** |
||
28 | * Create a new Amazon SQS queue instance. |
||
29 | * |
||
30 | * @param \Aws\Sqs\SqsClient $sqs |
||
31 | * @param string $default |
||
32 | * @param string $prefix |
||
33 | * @return void |
||
|
|||
34 | */ |
||
35 | public function __construct(SqsClient $sqs, $default, $prefix = '', array $options = []) |
||
51 | |||
52 | /** |
||
53 | * Push a raw payload onto the queue. |
||
54 | * |
||
55 | * @see http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/general-recommendations.html |
||
56 | * @see http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html |
||
57 | * |
||
58 | * @param string $payload |
||
59 | * @param string $queue |
||
60 | * @param array $options |
||
61 | * @return mixed |
||
62 | */ |
||
63 | public function pushRaw($payload, $queue = null, array $options = []) |
||
77 | |||
78 | protected function getMessageGroupId(): string |
||
87 | |||
88 | protected function getMessageDeduplicationId(string $payload): string |
||
92 | |||
93 | /** |
||
94 | * FIFO queues don't support per-message delays, only per-queue delays |
||
95 | * |
||
96 | * @see http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html |
||
97 | */ |
||
98 | public function later($delay, $job, $data = '', $queue = null) |
||
102 | |||
103 | /** |
||
104 | * Pop the next job off of the queue. |
||
105 | * |
||
106 | * @param string $queue |
||
107 | * @return \Illuminate\Contracts\Queue\Job|null |
||
108 | */ |
||
109 | public function pop($queue = null) |
||
128 | } |
||
129 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.