Class: Shoryuken::Polling::BaseStrategy
- Inherits:
-
Object
- Object
- Shoryuken::Polling::BaseStrategy
show all
- Includes:
- Util
- Defined in:
- lib/shoryuken/polling/base.rb
Instance Method Summary
collapse
Methods included from Util
#elapsed, #fire_event, #logger, #unparse_queues, #worker_name
Instance Method Details
#==(other) ⇒ Object
47
48
49
50
51
52
53
54
55
56
57
58
|
# File 'lib/shoryuken/polling/base.rb', line 47
def ==(other)
case other
when Array
@queues == other
else
if other.respond_to?(:active_queues)
active_queues == other.active_queues
else
false
end
end
end
|
#active_queues ⇒ Object
43
44
45
|
# File 'lib/shoryuken/polling/base.rb', line 43
def active_queues
fail NotImplementedError
end
|
#delay ⇒ Object
60
61
62
|
# File 'lib/shoryuken/polling/base.rb', line 60
def delay
@delay || Shoryuken.options[:delay].to_f
end
|
#messages_found(_queue, _messages_found) ⇒ Object
39
40
41
|
# File 'lib/shoryuken/polling/base.rb', line 39
def messages_found(_queue, _messages_found)
fail NotImplementedError
end
|
#next_queue ⇒ Object
35
36
37
|
# File 'lib/shoryuken/polling/base.rb', line 35
def next_queue
fail NotImplementedError
end
|