title: Read messages from Kafka topic between a range of offsets
body: <p><br>I am looking for a way to consume some set of messages from my Kafka topic with specific offset range (assume my partition has offset from 200 - 300, I want to consume the messages from offset 250-270).</p>
  
  <p>I am using below code where I can specify the initial offset, but it would consume all the messages from 250 to till end. Is there any way/attributes available to set the end offset to consume the messages till that point.
  <br>
  <br></p>
  
  <pre><code>    @KafkaListener(id = "KafkaListener",
          topics = "${kafka.topic.name}", 
          containerFactory = "kafkaManualAckListenerContainerFactory", 
          errorHandler = "${kafka.error.handler}",
          topicPartitions = @TopicPartition(topic = "${kafka.topic.name}",
          partitionOffsets = {
                  @PartitionOffset(partition = "0", initialOffset = "250"), 
                  @PartitionOffset(partition = "1", initialOffset = "250")
          }))
  </code></pre>