class LavinMQ::Federation::Upstream
- LavinMQ::Federation::Upstream
- Reference
- Object
Defined in:
lavinmq/federation/link.crlavinmq/federation/upstream.cr
Constant Summary
-
DEFAULT_ACK_MODE =
AckMode::OnConfirm
-
DEFAULT_EXPIRES =
nil
-
DEFAULT_MAX_HOPS =
1_i64
-
DEFAULT_MSG_TTL =
nil
-
DEFAULT_PREFETCH =
1000_u16
-
DEFAULT_RECONNECT_DELAY =
1
Constructors
Instance Method Summary
- #ack_mode : LavinMQ::Federation::AckMode
- #ack_mode=(ack_mode : LavinMQ::Federation::AckMode)
- #close
- #consumer_tag : String
- #exchange : String?
- #exchange=(exchange : Nil | String)
- #expires : Int64?
- #expires=(expires : Int64 | Nil)
-
#link(federated_exchange : Exchange) : ExchangeLink
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
-
#link(federated_q : Queue) : QueueLink
When federated_q has a consumer the connections are estabished.
- #links : Array(Link)
- #log
- #max_hops : Int64
- #max_hops=(max_hops : Int64)
- #msg_ttl : Int64?
- #msg_ttl=(msg_ttl : Int64 | Nil)
- #name : String
- #prefetch : UInt16
- #prefetch=(prefetch : UInt16)
- #queue : String?
- #queue=(queue : Nil | String)
- #reconnect_delay : Int32
- #reconnect_delay=(reconnect_delay : Int32)
-
#stop_link(federated_exchange : Exchange)
delete x-federation-upstream exchange on upstream delete queue on upstream
- #stop_link(federated_q : Queue)
- #type
- #uri : URI
- #uri=(uri : URI)
- #vhost : LavinMQ::VHost
Constructor Detail
Instance Method Detail
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