Class: ActiveJob::QueueAdapters::AbstractAdapter

Inherits:
Object
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stoppingObject

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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

def enqueue_at(job, timestamp)
  raise NotImplementedError
end

#stopping?Boolean

Returns:

  • (Boolean)


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

def stopping?
  !!@stopping
end