Class: ThreeScale::Backend::BackgroundJob
- Inherits:
-
Object
- Object
- ThreeScale::Backend::BackgroundJob
- Includes:
- Configurable
- Defined in:
- lib/3scale/backend/background_job.rb
Direct Known Subclasses
Analytics::Kinesis::Job, Analytics::Redshift::Job, Transactor::NotifyJob, Transactor::ReportJob
Constant Summary collapse
- EMPTY_HOOKS =
[].freeze
- Error =
Class.new StandardError
Class Method Summary collapse
-
.hooks ⇒ Object
Disable hooks to improve performance.
- .perform(*args) ⇒ Object
- .perform_logged(*_args) ⇒ Object
Methods included from Configurable
#configuration, #configuration=, included
Class Method Details
.hooks ⇒ Object
Disable hooks to improve performance. Profiling tests show that some significant CPU resources were consumed sorting and filtering these.
21 22 23 |
# File 'lib/3scale/backend/background_job.rb', line 21 def hooks EMPTY_HOOKS end |
.perform(*args) ⇒ Object
11 12 13 |
# File 'lib/3scale/backend/background_job.rb', line 11 def perform(*args) perform_wrapper(args) end |
.perform_logged(*_args) ⇒ Object
15 16 17 |
# File 'lib/3scale/backend/background_job.rb', line 15 def perform_logged(*_args) raise "This should be overloaded." end |