Module: TorqueBox::Messaging::Backgroundable

Defined in:
messaging/lib/torquebox/messaging/backgroundable.rb

Defined Under Namespace

Modules: BackgroundableClassMethods, Util Classes: BackgroundProxy

Constant Summary

MUTEX =
Mutex.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



36
37
38
39
40
# File 'messaging/lib/torquebox/messaging/backgroundable.rb', line 36

def self.included(base)
  base.extend(BackgroundableClassMethods)
  base.extend(FutureStatus)
  base.send(:include, FutureStatus)
end

+ (Boolean) newrelic_available?

Returns:

  • (Boolean)


43
44
45
# File 'messaging/lib/torquebox/messaging/backgroundable.rb', line 43

def self.newrelic_available?
  defined?(NewRelic::Agent)
end

Instance Method Details

- (Object) background(options = { })



52
53
54
# File 'messaging/lib/torquebox/messaging/backgroundable.rb', line 52

def background(options = { })
  BackgroundProxy.new(self, options)
end