123456789_123456789_123456789_123456789_123456789_

Class: ActiveJob::QueueAdapters::AbstractAdapter

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: activejob/lib/active_job/queue_adapters/abstract_adapter.rb

Overview

Active Job Abstract Adapter

Active Job supports multiple job queue systems. AbstractAdapter forms the abstraction layer which makes this possible.

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#stopping=(value) (rw)

[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 10

attr_accessor :stopping

#stopping?(job = nil) ⇒ Boolean (rw)

[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 20

def stopping?(job = nil)
  !!@stopping
end

Instance Method Details

#enqueue(job)

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 12

def enqueue(job)
  raise NotImplementedError
end

#enqueue_at(job, timestamp)

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 16

def enqueue_at(job, timestamp)
  raise NotImplementedError
end

#stopping (rw)

[ GitHub ]

  
# File 'activejob/lib/active_job/queue_adapters/abstract_adapter.rb', line 10

attr_accessor :stopping