Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 905b3e8

Browse files
committed
Revert StompProducer
1 parent cd3c765 commit 905b3e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/stomp/StompProducer.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public function send(Destination $destination, Message $message): void
4242
$this->stomp->send($destination->getQueueName(), $stompMessage);
4343
}
4444

45+
/**
46+
* @return $this|Producer
47+
*/
4548
public function setDeliveryDelay(int $deliveryDelay = null): Producer
4649
{
4750
if (empty($deliveryDelay)) {
@@ -56,6 +59,11 @@ public function getDeliveryDelay(): ?int
5659
return null;
5760
}
5861

62+
/**
63+
* @throws PriorityNotSupportedException
64+
*
65+
* @return $this|Producer
66+
*/
5967
public function setPriority(int $priority = null): Producer
6068
{
6169
if (empty($priority)) {
@@ -70,6 +78,9 @@ public function getPriority(): ?int
7078
return null;
7179
}
7280

81+
/**
82+
* @return $this|Producer
83+
*/
7384
public function setTimeToLive(int $timeToLive = null): Producer
7485
{
7586
if (empty($timeToLive)) {

0 commit comments

Comments
 (0)