class MultiWorker::Adapters::TorqueboxBackgroundable

Public Class Methods

configure(base, opts={}) click to toggle source
# File lib/multi_worker/adapters/torquebox_backgroundable.rb, line 4
def self.configure(base, opts={})
  base.class_eval do
    include ::TorqueBox::Messaging::Backgroundable

    def self.perform(*args)
      self.new.perform(*args)
    end

    def self.perform_async(*args)
      perform(*args)
    end

    def perform_async(*args)
      perform(*args)
    end

    always_background :perform_async
  end
end
perform(*args) click to toggle source
# File lib/multi_worker/adapters/torquebox_backgroundable.rb, line 8
def self.perform(*args)
  self.new.perform(*args)
end
perform_async(*args) click to toggle source
# File lib/multi_worker/adapters/torquebox_backgroundable.rb, line 12
def self.perform_async(*args)
  perform(*args)
end

Public Instance Methods

perform_async(*args) click to toggle source
# File lib/multi_worker/adapters/torquebox_backgroundable.rb, line 16
def perform_async(*args)
  perform(*args)
end