Module: Consumer::PositionStore::Get

Defined in:
lib/consumer/position_store.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prepended(cls) ⇒ Object



54
55
56
# File 'lib/consumer/position_store.rb', line 54

def self.prepended(cls)
  Virtual::PureMethod.define(cls, :get)
end

Instance Method Details

#getObject



58
59
60
61
62
63
64
65
66
67
68
# File 'lib/consumer/position_store.rb', line 58

def get
  logger.trace(tags: [:position_store, :get]) { "Get position" }

  position = super

  logger.debug(tags: [:position_store, :get]) { "Get position done (Position: #{position || '(none)'})" }

  telemetry.record(:get, Telemetry::Get.new(position))

  position
end