Class: Karafka::Params::Metadata

Inherits:
Struct
  • Object
show all
Defined in:
lib/karafka/params/metadata.rb

Overview

Single message / params metadata details that can be accessed without the need for the payload deserialization

Instance Attribute Summary collapse

Instance Attribute Details

#create_timeObject

Returns the value of attribute create_time

Returns:

  • (Object)

    the current value of create_time



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def create_time
  @create_time
end

#deserializerObject

Returns the value of attribute deserializer

Returns:

  • (Object)

    the current value of deserializer



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def deserializer
  @deserializer
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def headers
  @headers
end

#is_control_recordObject

Returns the value of attribute is_control_record

Returns:

  • (Object)

    the current value of is_control_record



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def is_control_record
  @is_control_record
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def key
  @key
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def offset
  @offset
end

#partitionObject

Returns the value of attribute partition

Returns:

  • (Object)

    the current value of partition



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def partition
  @partition
end

#receive_timeObject

Returns the value of attribute receive_time

Returns:

  • (Object)

    the current value of receive_time



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def receive_time
  @receive_time
end

#topicObject

Returns the value of attribute topic

Returns:

  • (Object)

    the current value of topic



7
8
9
# File 'lib/karafka/params/metadata.rb', line 7

def topic
  @topic
end