Parent

Class Index [+]

Quicksearch

AMQ::Client::ConsumerTagGenerator

Public Instance Methods

generate() click to toggle source

@return [String] Generated consumer tag

    # File lib/amq/client/consumer_tag_generator.rb, line 12
12:       def generate
13:         "#{Kernel.rand}-#{Time.now.to_i * 1000}-#{Kernel.rand(999_999_999_999)}"
14:       end
generate_for(queue) click to toggle source

@return [String] Generated consumer tag

    # File lib/amq/client/consumer_tag_generator.rb, line 17
17:       def generate_for(queue)
18:         raise ArgumentError, "argument must respond to :name" unless queue.respond_to?(:name)
19: 
20:         "#{queue.name}-#{Time.now.to_i * 1000}-#{Kernel.rand(999_999_999_999)}"
21:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.