Represents a queue or exchange binding (kombu.entity.binding).
Summary
Functions
Converts the binding to a map representation.
Binds an entity (%Kombu.Queue{} or %Kombu.Exchange{}) using this binding.
Checks if the binding is bound to a channel.
Checks if the declaration can be cached.
Declares the target exchange on channel if binding.exchange is present.
Creates a new %Kombu.Binding{}.
Creates a new %Kombu.Binding{} with exchange, routing_key, and additional opts.
Unbinds an entity (%Kombu.Queue{} or %Kombu.Exchange{}) from this binding.
Types
@type t() :: %Kombu.Binding{ arguments: map() | nil, exchange: Kombu.Exchange.t() | nil, routing_key: String.t(), unbind_arguments: map() | nil }
Functions
Converts the binding to a map representation.
Binds an entity (%Kombu.Queue{} or %Kombu.Exchange{}) using this binding.
Checks if the binding is bound to a channel.
Checks if the declaration can be cached.
Declares the target exchange on channel if binding.exchange is present.
@spec new(Kombu.Exchange.t() | String.t() | nil, keyword()) :: t()
Creates a new %Kombu.Binding{}.
@spec new(Kombu.Exchange.t() | String.t() | nil, String.t(), keyword()) :: t()
Creates a new %Kombu.Binding{} with exchange, routing_key, and additional opts.
Unbinds an entity (%Kombu.Queue{} or %Kombu.Exchange{}) from this binding.