Class: Karafka::Deserializers::Key

Inherits:
Object
  • Object
show all
Defined in:
lib/karafka/deserializers/key.rb

Overview

Default message key deserializer

Instance Method Summary collapse

Instance Method Details

#call(metadata) ⇒ String?

Returns expected message key in a string format or nil if no key.

Parameters:

Returns:

  • (String, nil)

    expected message key in a string format or nil if no key



10
11
12
# File 'lib/karafka/deserializers/key.rb', line 10

def call()
  .raw_key
end