Class: Sbmt::Outbox::V2::PollThrottler::Base
Instance Method Summary
collapse
call
Instance Method Details
#call(worker_num, poll_task, task_result) ⇒ Object
12
13
14
15
16
|
# File 'lib/sbmt/outbox/v2/poll_throttler/base.rb', line 12
def call(worker_num, poll_task, task_result)
with_metrics(poll_task) do
wait(worker_num, poll_task, task_result)
end
end
|
#wait(_worker_num, _poll_task, _task_result) ⇒ Object
18
19
20
|
# File 'lib/sbmt/outbox/v2/poll_throttler/base.rb', line 18
def wait(_worker_num, _poll_task, _task_result)
raise NotImplementedError, "Implement #wait for Sbmt::Outbox::PollThrottler::Base"
end
|