Module: EQ::Queueing

Defined in:
lib/eq-queueing.rb,
lib/eq-queueing/queue.rb,
lib/eq-queueing/backends.rb

Defined Under Namespace

Modules: Backends Classes: Queue

Constant Summary collapse

EQ_QUEUE =
:_eq_queueing

Class Method Summary collapse

Class Method Details

.bootObject



10
11
12
# File 'lib/eq-queueing.rb', line 10

def boot
  EQ::Queueing::Queue.supervise_as EQ_QUEUE, EQ::Queueing::Backends.init(EQ.config)
end

.queueObject



18
19
20
# File 'lib/eq-queueing.rb', line 18

def queue
  Celluloid::Actor[EQ_QUEUE]
end

.shutdownObject



14
15
16
# File 'lib/eq-queueing.rb', line 14

def shutdown
  queue.terminate! if queue
end