Class | Qpid::Proton::Reactor::Container |
In: |
lib/reactor/container.rb
|
Parent: | Reactor |
A representation of the AMQP concept of a container which, loosely speaking, is something that establishes links to or from another container on which messages are transferred.
This is an extension to the Reactor classthat adds convenience methods for creating instances of Qpid::Proton::Connection, Qpid::Proton::Sender and Qpid::Proton::Receiver.
@example
container_id | [RW] | |
global_handler | [RW] |
Initiates the establishment of a link over which messages can be received.
There are two accepted arguments for the context
1. If a Connection is supplied then the link is established using that
object. The source, and optionally the target, address can be supplied
2. If it is a String or a URL then a new Connection is created on which
the link will be attached. If a path is specified, but not the source address, then the path of the URL is used as the target address.
The name will be generated for the link if one is not specified.
@param context [Connection, URL, String] The connection or the address. @param opts [Hash] Additional otpions. @option opts [String, Qpid::Proton::URL] The source address. @option opts [String] :target The target address @option opts [String] :name The link name. @option opts [Boolean] :dynamic @option opts [Object] :handler @option opts [Hash] :options Additional link options.
@return [Receiver
Initiates the establishment of a link over which messages can be sent.
@param context [String, URL] The context. @param opts [Hash] Additional options. @param opts [String, Qpid::Proton::URL] The target address. @param opts [String] :source The source address. @param opts [Boolean] :dynamic @param opts [Object] :handler @param opts [Object] :tag_generator The tag generator. @param opts [Hash] :options Addtional link options
@return [Sender] The sender.