Class: Qu::Backend::Immediate

Inherits:
Base
  • Object
show all
Defined in:
lib/qu/backend/immediate.rb

Instance Attribute Summary

Attributes inherited from Base

#connection

Instance Method Summary collapse

Methods included from Logger

#clean_backtrace, #log_exception, #logger

Instance Method Details

#clearObject



23
24
# File 'lib/qu/backend/immediate.rb', line 23

def clear(*)
end

#completed(payload) ⇒ Object



8
9
# File 'lib/qu/backend/immediate.rb', line 8

def completed(payload)
end

#connection=Object



26
27
# File 'lib/qu/backend/immediate.rb', line 26

def connection=(*)
end

#enqueue(payload) ⇒ Object



4
5
6
# File 'lib/qu/backend/immediate.rb', line 4

def enqueue(payload)
  payload.perform
end

#failed(payload, error) ⇒ Object



14
15
# File 'lib/qu/backend/immediate.rb', line 14

def failed(payload, error)
end

#lengthObject



32
33
34
# File 'lib/qu/backend/immediate.rb', line 32

def length(*)
  0
end

#queuesObject



36
37
38
# File 'lib/qu/backend/immediate.rb', line 36

def queues(*)
  ["default"]
end

#register_workerObject



17
18
# File 'lib/qu/backend/immediate.rb', line 17

def register_worker(*)
end

#release(payload) ⇒ Object



11
12
# File 'lib/qu/backend/immediate.rb', line 11

def release(payload)
end

#reserveObject



29
30
# File 'lib/qu/backend/immediate.rb', line 29

def reserve(*)
end

#unregister_workerObject



20
21
# File 'lib/qu/backend/immediate.rb', line 20

def unregister_worker(*)
end