Class: Promiscuous::AMQP::File::Subscriber::Metadata
- Inherits:
-
Object
- Object
- Promiscuous::AMQP::File::Subscriber::Metadata
- Defined in:
- lib/promiscuous/amqp/file.rb
Instance Method Summary collapse
- #ack ⇒ Object
-
#initialize(sub) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(sub) ⇒ Metadata
Returns a new instance of Metadata.
69 70 71 |
# File 'lib/promiscuous/amqp/file.rb', line 69 def initialize(sub) @sub = sub end |
Instance Method Details
#ack ⇒ Object
73 74 75 76 77 78 |
# File 'lib/promiscuous/amqp/file.rb', line 73 def ack @sub.lock.synchronize do @sub.num_pending -= 1 @sub.prefetch_wait.signal end end |