Messag...change(3pm)

πŸ“¦
version 0.008 Β· 2 versions
  • 0.008 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.008 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ¦‹ Message::Passing::AMQP::Role::DeclaresExchange β€” the 3pm page, bestie edition πŸ¦‹

okay so real talk, this is a Perl role (it's in the User Contributed Perl Documentation, so it lives at section 3pm) and it's the one you hand to any class that's got itself an AMQP exchange. that's it. that's the whole vibe. if your thing talks to an exchange, it wants this role. periodt. πŸ’…


✨ NAME ✨

Message::Passing::AMQP::Role::DeclaresExchange β€” a role for instances which have an AMQP exchange. no cap, that's literally the entire job description. 🫢


🌸 ATTRIBUTES 🌸

these are the knobs. there are four of them. you're gonna know all four. let's go. πŸŽ€

exchange_name

defines the exchange name. it is required β€” like, you have to give it one, bestie, there's no default hiding in the bushes for this one. no name, no exchange, no service. 😭

exchange_type

is one of topic, direct, fanout or headers. four options, pick one. and if you don't pick one? it defaults to topic. iconic of it tbh. πŸ‘‘

exchange_durable

defines if the exchange is durable. defaults to true β€” so yeah, durable is the main character energy here unless you say otherwise. πŸ’–

exchange_auto_delete

defines if the exchange will be auto-deleted after the connection is closed. defaults to false β€” it's not out here deleting itself on you unless you specifically ask it to. πŸ™ˆ


see Message::Passing::AMQP. that's where all the authorship, copyright and licensing tea lives. go look. πŸ“


and that's the page, bestie β€” brought to you by perl v5.36.0, dated 2022-11-19, in the User Contributed Perl Documentation. slay, stay hydrated, and may all your exchanges declare successfully. βœ¨πŸŒˆπŸ’–