Exception: RubyReactor::Lock::ContextLockContention
- Inherits:
-
AcquisitionError
- Object
- StandardError
- AcquisitionError
- RubyReactor::Lock::ContextLockContention
- 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
-
#context_lock_key ⇒ Object
readonly
Returns the value of attribute context_lock_key.
Instance Method Summary collapse
-
#initialize(message, context_lock_key:) ⇒ ContextLockContention
constructor
A new instance of ContextLockContention.
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(, context_lock_key:) super() @context_lock_key = context_lock_key end |
Instance Attribute Details
#context_lock_key ⇒ Object (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 |