Class: ActiveJob::QueueAdapters::AbstractAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::AbstractAdapter
- Defined in:
- lib/active_job/queue_adapters/abstract_adapter.rb
Overview
Active Job Abstract Adapter
Active Job supports multiple job queue systems. ActiveJob::QueueAdapters::AbstractAdapter forms the abstraction layer which makes this possible.
Direct Known Subclasses
AsyncAdapter, BackburnerAdapter, DelayedJobAdapter, InlineAdapter, QueueClassicAdapter, ResqueAdapter, SidekiqAdapter, SneakersAdapter, TestAdapter
Instance Attribute Summary collapse
-
#stopping ⇒ Object
Returns the value of attribute stopping.
Instance Method Summary collapse
Instance Attribute Details
#stopping ⇒ Object
Returns the value of attribute stopping.
10 11 12 |
# File 'lib/active_job/queue_adapters/abstract_adapter.rb', line 10 def stopping @stopping end |
Instance Method Details
#enqueue(job) ⇒ Object
12 13 14 |
# File 'lib/active_job/queue_adapters/abstract_adapter.rb', line 12 def enqueue(job) raise NotImplementedError end |
#enqueue_at(job, timestamp) ⇒ Object
16 17 18 |
# File 'lib/active_job/queue_adapters/abstract_adapter.rb', line 16 def enqueue_at(job, ) raise NotImplementedError end |
#stopping? ⇒ Boolean
20 21 22 |
# File 'lib/active_job/queue_adapters/abstract_adapter.rb', line 20 def stopping? !!@stopping end |