Module: MobME::Infrastructure::Queue
- Defined in:
- lib/mobme/infrastructure/queue.rb,
lib/mobme/infrastructure/queue.rb,
lib/mobme/infrastructure/queue/backend.rb
Defined Under Namespace
Modules: Backends, ZeroMQ Classes: Backend, RemoveAbort, RemoveConflictException
Class Method Summary collapse
Class Method Details
.queue(backend, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/mobme/infrastructure/queue.rb', line 16 def self.queue(backend, = {}) case backend when :memory require_relative 'queue/backends/memory' MobME::Infrastructure::Queue::Backends::Memory.new() when :redis require_relative 'queue/backends/redis' MobME::Infrastructure::Queue::Backends::Redis.new() when :zeromq require_relative 'queue/backends/zeromq' MobME::Infrastructure::Queue::Backends::ZeroMQ.new() when :amqp require_relative 'queue/backends/amqp' MobME::Infrastructure::Queue::Backends::AMQP.new() end end |