LavinMQ::Federation::Upstream
Constructors
Instance methods
Stop all links and remove the resources they created on the upstream broker. Use when the upstream is being explicitly deleted.
Copy the upstream's configuration but give the copy its own, empty link tables. Used by upstream sets that override settings per entry; a plain shallow dup would share @q_links/@ex_links with the original.
declare queue on upstream consume queue and publish to downstream exchange declare upstream exchange (passive) declare x-federation-upstream exchange on upstream bind x-federation-upstream exchange to queue get bindings for downstream exchange add bindings from upstream exchange to x-federation-upstream exchange keep downstream exchange bindings reflected on x-federation-upstream exchange
When federated_q has a consumer the connections are estabished. If all consumers disconnect, the connections are closed. When the policy or the upstream is removed the link is also removed.
delete x-federation-upstream exchange on upstream delete queue on upstream
Removes the link from this upstream without stopping it. Links are keyed by name, so only a link that belongs to this very resource is removed, not one of a replacement declared under the same name
Names the resources an ExchangeLink creates on the upstream broker