-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #36431 [Messenger] Add FIFO support to the SQS transport (cv6…
…5kr) This PR was squashed before being merged into the 5.1-dev branch. Discussion ---------- [Messenger] Add FIFO support to the SQS transport | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | no | License | MIT | Doc PR | -- https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html Commits ------- 3760175 [Messenger] Add FIFO support to the SQS transport
- Loading branch information
Showing
7 changed files
with
127 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ CHANGELOG | |
----- | ||
|
||
* Introduced the Amazon SQS bridge. | ||
|
||
* Added FIFO support to the SQS transport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsFifoStamp.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\Messenger\Bridge\AmazonSqs\Transport; | ||
|
||
use Symfony\Component\Messenger\Stamp\NonSendableStampInterface; | ||
|
||
final class AmazonSqsFifoStamp implements NonSendableStampInterface | ||
{ | ||
private $messageGroupId; | ||
|
||
private $messageDeduplicationId; | ||
|
||
public function __construct(?string $messageGroupId = null, ?string $messageDeduplicationId = null) | ||
{ | ||
$this->messageGroupId = $messageGroupId; | ||
$this->messageDeduplicationId = $messageDeduplicationId; | ||
} | ||
|
||
public function getMessageGroupId(): ?string | ||
{ | ||
return $this->messageGroupId; | ||
} | ||
|
||
public function getMessageDeduplicationId(): ?string | ||
{ | ||
return $this->messageDeduplicationId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters