lib/bunny/channel.rb in bunny-0.9.0.pre13 vs lib/bunny/channel.rb in bunny-0.9.0.rc1

- old
+ new

@@ -125,20 +125,24 @@ # conn.create_channel.queue_delete(q) # end # # @see http://www.rabbitmq.com/tutorials/amqp-concepts.html AMQP 0.9.1 Model Concepts Guide # @see http://rubybunny.info/articles/getting_started.html Getting Started with RabbitMQ Using Bunny + # @see http://rubybunny.info/articles/queues.html Queues and Consumers + # @see http://rubybunny.info/articles/exchanges.html Exchanges and Publishing # @see http://rubybunny.info/articles/error_handling.html Error Handling and Recovery Guide class Channel # # API # + # @return [Integer] Channel id attr_accessor :id # @return [Bunny::Session] AMQP connection this channel was opened on attr_reader :connection + # @return [Symbol] Channel status (:opening, :open, :closed) attr_reader :status # @return [Bunny::ConsumerWorkPool] Thread pool delivered messages are dispatched to. attr_reader :work_pool # @return [Integer] Next publisher confirmations sequence index attr_reader :next_publish_seq_no @@ -186,10 +190,11 @@ @threads_waiting_on_basic_get_continuations = Set.new @next_publish_seq_no = 0 end + # @private def read_write_timeout @connection.read_write_timeout end # Opens the channel and resets its internal state @@ -1441,10 +1446,11 @@ end # @endgroup + # @return [String] Brief human-readable representation of the channel def to_s "#<#{self.class.name}:#{object_id} @id=#{self.number} @connection=#{@connection.to_s}>" end @@ -1775,24 +1781,24 @@ # @private def raise_if_no_longer_open! raise ChannelAlreadyClosed.new("cannot use a channel that was already closed! Channel id: #{@id}", self) if closed? end - # @api private + # @private def reset_continuations @continuations = new_continuation @confirms_continuations = new_continuation @basic_get_continuations = new_continuation end if defined?(JRUBY_VERSION) - # @api private + # @private def new_continuation Concurrent::LinkedContinuationQueue.new end else - # @api private + # @private def new_continuation Concurrent::ContinuationQueue.new end end # if defined? end # Channel