Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[amqp] Delay Strategy #152

Merged
merged 14 commits into from
Aug 7, 2017
Merged

[amqp] Delay Strategy #152

merged 14 commits into from
Aug 7, 2017

Conversation

ASKozienko
Copy link
Member

No description provided.

@@ -0,0 +1,43 @@
<?php

namespace Enqueue\Client\Amqp;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you create a separate pkg, call it amqp-tools

use Interop\Amqp\AmqpTopic;
use Interop\Amqp\Impl\AmqpBind;

class DelayPluginDelayStrategy implements DelayStrategy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RabbitMQDelayPluginDelayStrategy

use Interop\Amqp\AmqpQueue;
use Interop\Amqp\AmqpTopic;

class DlxDelayStrategy implements DelayStrategy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RabbitMQDlxDelayStrategy

$delayQueue->setArgument('x-dead-letter-exchange', '');
$delayQueue->setArgument('x-dead-letter-routing-key', $dest->getQueueName());
} else {
throw new \LogicException();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InvalidDestinationException

@makasim
Copy link
Member

makasim commented Aug 3, 2017

Dont forget about DelayStragegyAware interface.

@makasim makasim closed this Aug 3, 2017
@makasim makasim reopened this Aug 3, 2017
@makasim makasim changed the title Delay Strategy [amqp] Delay Strategy Aug 7, 2017
@makasim makasim merged commit 6119f04 into master Aug 7, 2017
@makasim makasim deleted the delay_strategy branch August 7, 2017 13:10
ASKozienko pushed a commit that referenced this pull request Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants