Class: Dynflow::DelayedExecutors::PollingCore
- Inherits:
-
AbstractCore
- Object
- Concurrent::Actor::Context
- Actor
- AbstractCore
- Dynflow::DelayedExecutors::PollingCore
- Defined in:
- lib/dynflow/delayed_executors/polling.rb
Instance Attribute Summary collapse
-
#poll_interval ⇒ Object
readonly
Returns the value of attribute poll_interval.
Attributes inherited from AbstractCore
Instance Method Summary collapse
Methods inherited from AbstractCore
Methods inherited from Actor
#behaviour_definition, #finish_termination, #start_termination, #terminating?
Methods included from MethodicActor
Methods included from Actor::LogWithFullBacktrace
Constructor Details
This class inherits a constructor from Dynflow::DelayedExecutors::AbstractCore
Instance Attribute Details
#poll_interval ⇒ Object (readonly)
Returns the value of attribute poll_interval.
12 13 14 |
# File 'lib/dynflow/delayed_executors/polling.rb', line 12 def poll_interval @poll_interval end |
Instance Method Details
#check_delayed_plans ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/dynflow/delayed_executors/polling.rb', line 23 def check_delayed_plans check_time = time plans = delayed_execution_plans(check_time) process plans, check_time world.clock.ping(self, poll_interval, :check_delayed_plans) end |
#configure(options) ⇒ Object
14 15 16 17 |
# File 'lib/dynflow/delayed_executors/polling.rb', line 14 def configure() super() @poll_interval = [:poll_interval] end |
#start ⇒ Object
19 20 21 |
# File 'lib/dynflow/delayed_executors/polling.rb', line 19 def start check_delayed_plans end |