forked from ewaters/poe-component-client-amqp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for Reconnect & round robin RemoteAddress
You can now provide 'Reconnect => 1' and 'Callbacks => { Reconnected => [ sub {} ] }' in the new() args to the Client. Any queues, channels, subscriptions, etc. that were created synchronously will be recreated, however I'm unclear at this point how dynamically generated queue names will be handled. For this reason, adding callbacks to the 'Disconnected' and 'Reconnected' triggers to resetup your queue/exchange/channel topology would be best practice, as is checking $amq->is_started before doing server_send events. If $amq->server_send is called while in the progress of reconnecting, the messages will be enqueued to $amq->{failed_server_send}, which the user is at this point expected to do something with.
- Loading branch information
Showing
6 changed files
with
138 additions
and
22 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
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
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