Module: RedisQueuedLocks::Acquirer::AcquireLock::YieldExpire::LogVisitor Private
- Defined in:
- lib/redis_queued_locks/acquirer/acquire_lock/yield_expire/log_visitor.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .decrease_lock(logger, log_sampled, lock_key, decreased_ttl, queue_ttl, acquirer_id, host_id, access_strategy) ⇒ void private
- .expire_lock(logger, log_sampled, lock_key, queue_ttl, acquirer_id, host_id, access_strategy) ⇒ void private
Class Method Details
.decrease_lock(logger, log_sampled, lock_key, decreased_ttl, queue_ttl, acquirer_id, host_id, access_strategy) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/redis_queued_locks/acquirer/acquire_lock/yield_expire/log_visitor.rb', line 53 def decrease_lock( logger, log_sampled, lock_key, decreased_ttl, queue_ttl, acquirer_id, host_id, access_strategy ) return unless log_sampled logger.debug do "[redis_queued_locks.decrease_lock] " \ "lock_key => '#{lock_key}' " \ "decreased_ttl => #{decreased_ttl} " \ "queue_ttl => #{queue_ttl} " \ "acq_id => '#{acquirer_id}' " \ "hst_id => '#{host_id}' " \ "acs_strat => '#{access_strategy}'" end rescue nil end |
.expire_lock(logger, log_sampled, lock_key, queue_ttl, acquirer_id, host_id, access_strategy) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/redis_queued_locks/acquirer/acquire_lock/yield_expire/log_visitor.rb', line 19 def expire_lock( logger, log_sampled, lock_key, queue_ttl, acquirer_id, host_id, access_strategy ) return unless log_sampled logger.debug do "[redis_queued_locks.expire_lock] " \ "lock_key => '#{lock_key}' " \ "queue_ttl => #{queue_ttl} " \ "acq_id => '#{acquirer_id}' " \ "hst_id => '#{host_id}' " \ "acs_strat => '#{access_strategy}'" end rescue nil end |