lib/amq/client/async/channel.rb in amq-client-0.9.12 vs lib/amq/client/async/channel.rb in amq-client-1.0.0.pre1
- old
+ new
@@ -131,21 +131,21 @@
# @group Message acknowledgements
# Acknowledge one or all messages on the channel.
#
# @api public
- # @see files.travis-ci.org/docs/amqp/0.9.1/AMQP091Reference.pdf AMQP 0.9.1 protocol reference (Section 1.8.3.13.)
+ # @see http://bit.ly/amqp091reference AMQP 0.9.1 protocol reference (Section 1.8.3.13.)
def acknowledge(delivery_tag, multiple = false)
@connection.send_frame(Protocol::Basic::Ack.encode(self.id, delivery_tag, multiple))
self
end # acknowledge(delivery_tag, multiple = false)
# Reject a message with given delivery tag.
#
# @api public
- # @see files.travis-ci.org/docs/amqp/0.9.1/AMQP091Reference.pdf AMQP 0.9.1 protocol reference (Section 1.8.3.14.)
+ # @see http://bit.ly/amqp091reference AMQP 0.9.1 protocol reference (Section 1.8.3.14.)
def reject(delivery_tag, requeue = true)
@connection.send_frame(Protocol::Basic::Reject.encode(self.id, delivery_tag, requeue))
self
end # reject(delivery_tag, requeue = true)
@@ -154,11 +154,11 @@
# to be redelivered.
#
# @return [Channel] self
#
# @note RabbitMQ as of 2.3.1 does not support basic.recover with requeue = false.
- # @see files.travis-ci.org/docs/amqp/0.9.1/AMQP091Reference.pdf AMQP 0.9.1 protocol reference (Section 1.8.3.16.)
+ # @see http://bit.ly/amqp091reference AMQP 0.9.1 protocol reference (Section 1.8.3.16.)
# @api public
def recover(requeue = true, &block)
@connection.send_frame(Protocol::Basic::Recover.encode(@id, requeue))
self.redefine_callback :recover, &block
@@ -179,21 +179,21 @@
def qos(prefetch_size = 0, prefetch_count = 32, global = false, &block)
@connection.send_frame(Protocol::Basic::Qos.encode(@id, prefetch_size, prefetch_count, global))
self.redefine_callback :qos, &block
self
- end # qos
+ end # qos(prefetch_size = 4096, prefetch_count = 32, global = false, &block)
# Asks the peer to pause or restart the flow of content data sent to a consumer.
# This is a simple flowcontrol mechanism that a peer can use to avoid overflowing its
# queues or otherwise finding itself receiving more messages than it can process. Note that
# this method is not intended for window control. It does not affect contents returned to
# Queue#get callers.
#
# @param [Boolean] active Desired flow state.
#
- # @see files.travis-ci.org/docs/amqp/0.9.1/AMQP091Reference.pdf AMQP 0.9.1 protocol reference (Section 1.5.2.3.)
+ # @see http://bit.ly/amqp091reference AMQP 0.9.1 protocol reference (Section 1.5.2.3.)
# @api public
def flow(active = false, &block)
@connection.send_frame(Protocol::Channel::Flow.encode(@id, active))
self.redefine_callback :flow, &block
@@ -411,10 +411,9 @@
# @api plugin
# @private
def handle_close(channel_close)
self.status = :closed
self.connection.clear_frames_on(self.id)
-
self.exec_callback_yielding_self(:error, channel_close)
self.handle_connection_interruption(channel_close)
end