Exception: RubyReactor::Lock::ContextLockContention

Inherits:
AcquisitionError
  • Object
show all
Defined in:
lib/ruby_reactor/lock.rb

Overview

Raised specifically for the per-context liveness lock (‘async:<id>`). Carries the bare key so the worker can exempt it from the snooze cap: a duplicate of the same execution may legitimately wait arbitrarily long for the live original to finish.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, context_lock_key:) ⇒ ContextLockContention

Returns a new instance of ContextLockContention.



14
15
16
17
# File 'lib/ruby_reactor/lock.rb', line 14

def initialize(message, context_lock_key:)
  super(message)
  @context_lock_key = context_lock_key
end

Instance Attribute Details

#context_lock_keyObject (readonly)

Returns the value of attribute context_lock_key.



12
13
14
# File 'lib/ruby_reactor/lock.rb', line 12

def context_lock_key
  @context_lock_key
end