Class: RabbitMQClient::ConfirmedMessageListener
- Inherits:
-
Object
- Object
- RabbitMQClient::ConfirmedMessageListener
- Includes:
- ConfirmListener
- Defined in:
- lib/jessica/rabbitmq_client.rb
Instance Method Summary collapse
-
#handleAck(delivery_tag, multiple) ⇒ Object
long,boolean.
-
#handleNack(delivery_tag, multiple) ⇒ Object
long,boolean.
-
#initialize(callable) ⇒ ConfirmedMessageListener
constructor
A new instance of ConfirmedMessageListener.
Constructor Details
#initialize(callable) ⇒ ConfirmedMessageListener
Returns a new instance of ConfirmedMessageListener.
39 40 41 |
# File 'lib/jessica/rabbitmq_client.rb', line 39 def initialize(callable) @callable = callable end |
Instance Method Details
#handleAck(delivery_tag, multiple) ⇒ Object
long,boolean
43 44 45 46 |
# File 'lib/jessica/rabbitmq_client.rb', line 43 def handleAck(delivery_tag,multiple) #long,boolean ret = {:kind => 'ACK',:delivery_tag => delivery_tag, :multiple => multiple} @callable.call(ret) end |
#handleNack(delivery_tag, multiple) ⇒ Object
long,boolean
48 49 50 51 |
# File 'lib/jessica/rabbitmq_client.rb', line 48 def handleNack(delivery_tag,multiple) #long,boolean ret = {:kind => 'NACK',:delivery_tag => delivery_tag, :multiple => multiple} @callable.call(ret) end |