Module: Elected::Scheduler

Extended by:
Scheduler
Included in:
Scheduler
Defined in:
lib/elected/scheduler.rb,
lib/elected/scheduler/job.rb,
lib/elected/scheduler/poller.rb,
lib/elected/scheduler/version.rb,
lib/elected/scheduler/schedule.rb

Defined Under Namespace

Classes: Job, Poller, Schedule

Constant Summary collapse

VERSION =
'0.1.4'

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject



143
144
145
# File 'lib/elected/scheduler/poller.rb', line 143

def key
  @key || 'elected_scheduler_poller'
end

#timeoutObject



147
148
149
# File 'lib/elected/scheduler/poller.rb', line 147

def timeout
  @timeout || Elected.timeout
end

Instance Method Details

#pollerObject



151
152
153
# File 'lib/elected/scheduler/poller.rb', line 151

def poller
  @poller ||= Poller.new key, timeout
end