Class: Sqspoller::WorkerTask

Inherits:
Object
  • Object
show all
Defined in:
lib/sqspoller/worker_task.rb

Instance Method Summary collapse

Constructor Details

#initialize(worker_configuration) ⇒ WorkerTask

Returns a new instance of WorkerTask.



7
8
9
# File 'lib/sqspoller/worker_task.rb', line 7

def initialize(worker_configuration)
  @message_handler = SqsPoller::Process::MessageHandler.new(worker_configuration)
end

Instance Method Details

#handle(message, message_id) ⇒ Object



11
12
13
# File 'lib/sqspoller/worker_task.rb', line 11

def handle(message, message_id)
  @message_handler.handle(message, message_id)
end