Class: Karafka::Messages::Seek

Inherits:
Struct
  • Object
show all
Defined in:
lib/karafka/messages/seek.rb

Overview

“Fake” message that we use as an abstraction layer when seeking back. This allows us to encapsulate a seek with a simple abstraction

Instance Attribute Summary collapse

Instance Attribute Details

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



7
8
9
# File 'lib/karafka/messages/seek.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/messages/seek.rb', line 7

def partition
  @partition
end

#topicObject

Returns the value of attribute topic

Returns:

  • (Object)

    the current value of topic



7
8
9
# File 'lib/karafka/messages/seek.rb', line 7

def topic
  @topic
end