Class: SolidQueue::Processes::Poller

Inherits:
Base
  • Object
show all
Includes:
Runnable
Defined in:
lib/solid_queue/processes/poller.rb

Direct Known Subclasses

Dispatcher, Worker

Instance Attribute Summary collapse

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods included from Runnable

#start, #stop

Methods included from Supervised

#supervised_by

Methods inherited from Base

#hostname, #kind, #pid, #stop

Methods included from AppExecutor

#handle_thread_error, #wrap_in_app_executor

Methods included from Registrable

#process_id

Methods included from Interruptible

#wake_up

Methods included from Procline

#procline

Constructor Details

#initialize(polling_interval:, **options) ⇒ Poller

Returns a new instance of Poller.



9
10
11
12
13
# File 'lib/solid_queue/processes/poller.rb', line 9

def initialize(polling_interval:, **options)
  @polling_interval = polling_interval

  super(**options)
end

Instance Attribute Details

#polling_intervalObject

Returns the value of attribute polling_interval.



7
8
9
# File 'lib/solid_queue/processes/poller.rb', line 7

def polling_interval
  @polling_interval
end

Instance Method Details

#metadataObject



15
16
17
# File 'lib/solid_queue/processes/poller.rb', line 15

def 
  super.merge(polling_interval: polling_interval)
end