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



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

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

Instance Method Details

#getObject



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

def get
  logger.trace { "Get position" }

  position = super

  logger.info { "Get position done (Position: #{position || '(none)'})" }

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

  position
end