class Shoryuken::WorkerRegistry
Public Instance Methods
batch_receive_messages?(_queue)
click to toggle source
# File lib/shoryuken/worker_registry.rb, line 3 def batch_receive_messages?(_queue) # true if the workers for queue support batch processing of messages fail NotImplementedError end
clear()
click to toggle source
# File lib/shoryuken/worker_registry.rb, line 8 def clear # must remove all worker registrations fail NotImplementedError end
fetch_worker(_queue, _message)
click to toggle source
# File lib/shoryuken/worker_registry.rb, line 13 def fetch_worker(_queue, _message) # must return an instance of the worker that handles # message received on queue fail NotImplementedError end
queues()
click to toggle source
# File lib/shoryuken/worker_registry.rb, line 19 def queues # must return a list of all queues with registered workers fail NotImplementedError end
register_worker(_queue, _clazz)
click to toggle source
# File lib/shoryuken/worker_registry.rb, line 24 def register_worker(_queue, _clazz) # must register the worker as a consumer of messages from queue fail NotImplementedError end
workers(_queue)
click to toggle source
# File lib/shoryuken/worker_registry.rb, line 29 def workers(_queue) # must return the list of workers registered for queue, or [] fail NotImplementedError end