Class: Dynflow::Coordinator::DelayedExecutorLock
- Inherits:
-
LockByWorld
- Object
- Serializable
- Record
- Lock
- LockByWorld
- Dynflow::Coordinator::DelayedExecutorLock
- Defined in:
- lib/dynflow/coordinator.rb
Constant Summary
Constants inherited from Serializable
Serializable::LEGACY_TIME_FORMAT, Serializable::TIME_FORMAT
Instance Attribute Summary
Attributes inherited from Record
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(world) ⇒ DelayedExecutorLock
constructor
A new instance of DelayedExecutorLock.
Methods inherited from LockByWorld
inherited, unique_filter, valid_classes, valid_owner_ids, #validate!, #world_id
Methods inherited from Lock
constantize, #owner_id, #to_s, #unlock_on_shutdown?, #validate!
Methods inherited from Record
#==, constantize, #from_hash, #hash, #id, new_from_hash, #to_hash, #to_s, #validate!
Methods inherited from Serializable
constantize, from_hash, new_from_hash, #to_hash
Constructor Details
#initialize(world) ⇒ DelayedExecutorLock
Returns a new instance of DelayedExecutorLock.
192 193 194 195 |
# File 'lib/dynflow/coordinator.rb', line 192 def initialize(world) super @data[:id] = self.class.lock_id end |
Class Method Details
.lock_id ⇒ Object
197 198 199 |
# File 'lib/dynflow/coordinator.rb', line 197 def self.lock_id "delayed-executor" end |