Module: RedisQueuedLocks::Acquirer::LockSeriesPoC::LogVisitor Private

Defined in:
lib/redis_queued_locks/acquirer/lock_series_poc/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.

NOTE: Lock Series PoC steep:ignore

Since:

  • 1.16.1

Class Method Summary collapse

Class Method Details

.expire_lock_series(logger, log_sampled, lock_series, queue_ttl, acquirer_id, host_id, access_strategy) ⇒ Object

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.

NOTE: Lock Series PoC

Since:

  • 1.16.0



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/redis_queued_locks/acquirer/lock_series_poc/log_visitor.rb', line 62

def expire_lock_series( # steep:ignore
  logger,
  log_sampled,
  lock_series,
  queue_ttl,
  acquirer_id,
  host_id,
  access_strategy
)
  return unless log_sampled

  logger.debug do
    "[redis_queued_locks.expire_lock_series] " \
    "lock_keys => '#{lock_series.inspect}' " \
    "queue_ttl => #{queue_ttl} " \
    "acq_id => '#{acquirer_id}' " \
    "hst_id => '#{host_id}' " \
    "acs_strat => '#{access_strategy}'"
  end rescue nil
end

.lock_series_obtained(logger, log_sampled, lock_keys, queue_ttl, acquirer_id, host_id, acq_time, access_strategy) ⇒ Object

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.

NOTE: Lock Series PoC

Since:

  • 1.16.0



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/redis_queued_locks/acquirer/lock_series_poc/log_visitor.rb', line 36

def lock_series_obtained( # steep:ignore
  logger,
  log_sampled,
  lock_keys,
  queue_ttl,
  acquirer_id,
  host_id,
  acq_time,
  access_strategy
)
  return unless log_sampled

  logger.debug do
    "[redis_queued_locks.lock_series_obtained] " \
    "lock_keys => '#{lock_keys.inspect}' " \
    "queue_ttl => #{queue_ttl} " \
    "acq_id => '#{acquirer_id}' " \
    "hst_id => '#{host_id}' " \
    "acs_strat => '#{access_strategy}' " \
    "acq_time => #{acq_time} (ms)"
  end # rescue nil
end

.start_lock_series_obtaining(logger, log_sampled, lock_keys, queue_ttl, acquirer_id, host_id, access_strategy) ⇒ Object

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.

NOTE: Lock Series PoC

Since:

  • 1.16.0



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/redis_queued_locks/acquirer/lock_series_poc/log_visitor.rb', line 12

def start_lock_series_obtaining( # steep:ignore
  logger,
  log_sampled,
  lock_keys,
  queue_ttl,
  acquirer_id,
  host_id,
  access_strategy
)
  return unless log_sampled

  logger.debug do
    "[redis_queued_locks.start_lock_series_obtaining] " \
    "lock_keys => '#{lock_keys.inspect}'" \
    "queue_ttl => #{queue_ttl} " \
    "acq_id => '#{acquirer_id}' " \
    "hst_id => '#{host_id}' " \
    "acs_strat => '#{access_strategy}'"
  end # rescue nil
end