Class: AceMQ::AMQP::RetryLadder::Rung

Inherits:
Struct
  • Object
show all
Defined in:
lib/acemq/amqp/retry_ladder.rb

Overview

One step of the ladder: a delay, the queue that expresses it, and the arguments that queue has to be declared with for it to mean anything.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#arguments ⇒ Object

Returns the value of attribute arguments

Returns:

  • (Object) —

    the current value of arguments



69
70
71
# File 'lib/acemq/amqp/retry_ladder.rb', line 69

def arguments
  @arguments
end

#delay ⇒ Object

Returns the value of attribute delay

Returns:

  • (Object) —

    the current value of delay



69
70
71
# File 'lib/acemq/amqp/retry_ladder.rb', line 69

def delay
  @delay
end

#queue ⇒ Object

Returns the value of attribute queue

Returns:

  • (Object) —

    the current value of queue



69
70
71
# File 'lib/acemq/amqp/retry_ladder.rb', line 69

def queue
  @queue
end

Instance Method Details

#to_s ⇒ Object



70
# File 'lib/acemq/amqp/retry_ladder.rb', line 70

def to_s = "#{queue} (ttl #{delay}s)"