Class: Synapse::Repository::NullLockManager

Inherits:
LockManager
  • Object
show all
Defined in:
lib/synapse/repository/lock_manager.rb

Overview

Implementation of a lock manager that does no locking

Instance Method Summary collapse

Instance Method Details

#obtain_lock(aggregate_id) ⇒ undefined

Parameters:

  • aggregate_id (Object)

Returns:

  • (undefined)


47
# File 'lib/synapse/repository/lock_manager.rb', line 47

def obtain_lock(aggregate_id); end

#release_lock(aggregate_id) ⇒ undefined

Parameters:

  • aggregate_id (Object)

Returns:

  • (undefined)


51
# File 'lib/synapse/repository/lock_manager.rb', line 51

def release_lock(aggregate_id); end

#validate_lock(aggregate) ⇒ Boolean

Parameters:

  • aggregate (AggregateRoot)

Returns:

  • (Boolean)


41
42
43
# File 'lib/synapse/repository/lock_manager.rb', line 41

def validate_lock(aggregate)
  true
end