Class: AMQP::Client::Connection::Channel::ConsumeOk

Inherits:
Data
  • Object
show all
Defined in:
lib/amqp/client/channel.rb

Overview

Response when subscribing (starting a consumer)

Basic collapse

Instance Attribute Details

#channel_idInteger

Returns The channel ID.

Returns:

  • (Integer)

    The channel ID



324
# File 'lib/amqp/client/channel.rb', line 324

ConsumeOk = Data.define(:channel_id, :consumer_tag, :worker_threads, :msg_q, :on_cancel)

#consumer_tagString

Returns The consumer tag.

Returns:

  • (String)

    The consumer tag



324
# File 'lib/amqp/client/channel.rb', line 324

ConsumeOk = Data.define(:channel_id, :consumer_tag, :worker_threads, :msg_q, :on_cancel)

#msg_qObject (readonly)

Returns the value of attribute msg_q

Returns:

  • (Object)

    the current value of msg_q



324
325
326
# File 'lib/amqp/client/channel.rb', line 324

def msg_q
  @msg_q
end

#on_cancelObject (readonly)

Returns the value of attribute on_cancel

Returns:

  • (Object)

    the current value of on_cancel



324
325
326
# File 'lib/amqp/client/channel.rb', line 324

def on_cancel
  @on_cancel
end

#worker_threadsArray<Thread>

Returns Array of worker threads.

Returns:

  • (Array<Thread>)

    Array of worker threads



324
# File 'lib/amqp/client/channel.rb', line 324

ConsumeOk = Data.define(:channel_id, :consumer_tag, :worker_threads, :msg_q, :on_cancel)