Class: SidekiqRobustJob::UniquenessStrategy::Base
- Inherits:
-
Object
- Object
- SidekiqRobustJob::UniquenessStrategy::Base
- Defined in:
- lib/sidekiq_robust_job/uniqueness_strategy/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #execute(_job) ⇒ Object
-
#initialize(locker:, lock_ttl_proc:, jobs_repository:, memory_monitor:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(locker:, lock_ttl_proc:, jobs_repository:, memory_monitor:) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 |
# File 'lib/sidekiq_robust_job/uniqueness_strategy/base.rb', line 7 def initialize(locker:, lock_ttl_proc:, jobs_repository:, memory_monitor:) @locker = locker @lock_ttl_proc = lock_ttl_proc @jobs_repository = jobs_repository @memory_monitor = memory_monitor end |
Instance Method Details
#execute(_job) ⇒ Object
14 15 16 |
# File 'lib/sidekiq_robust_job/uniqueness_strategy/base.rb', line 14 def execute(_job) raise "implement me" end |