Class: Queuel::IronMq::Queue
- Inherits:
-
Base::Queue
- Object
- Base::Queue
- Queuel::IronMq::Queue
- Extended by:
- Forwardable
- Defined in:
- lib/queuel/iron_mq/queue.rb
Instance Method Summary collapse
- #peek(options = {}) ⇒ Object
-
#push(message, options = {}) ⇒ Object
For IronMQ it should just be (message).
- #size ⇒ Object
Methods inherited from Base::Queue
#initialize, #max_pool_tasks, #pop, #receive
Methods included from Queuel::Introspect
#const_with_nesting, #module_names
Constructor Details
This class inherits a constructor from Queuel::Base::Queue
Instance Method Details
#peek(options = {}) ⇒ Object
11 12 13 |
# File 'lib/queuel/iron_mq/queue.rb', line 11 def peek( = {}) Array(queue_connection.peek()) end |
#push(message, options = {}) ⇒ Object
For IronMQ it should just be (message)
16 17 18 |
# File 'lib/queuel/iron_mq/queue.rb', line 16 def push(, = {}) queue_connection.post (, ) end |
#size ⇒ Object
20 21 22 |
# File 'lib/queuel/iron_mq/queue.rb', line 20 def size queue_connection.size end |