Skip to content

Commit

Permalink
hotfix: auto commit false
Browse files Browse the repository at this point in the history
  • Loading branch information
Saicasm committed May 12, 2024
1 parent c41ee59 commit bd865f5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public class KafkaConsumer {

private final BlockingQueue<List<MusicTrack>> responseQueue = new LinkedBlockingQueue<>();

@KafkaListener(topics = "final-recommendation", groupId = "client-group")
@KafkaListener(topics = "final-recommendation",
properties = {"enable.auto.commit:false", "auto.offset.reset:latest"},
groupId = "client-group")
public void listen(@Payload List<MusicTrack> message ) {
responseQueue.offer(message);
}
Expand Down

0 comments on commit bd865f5

Please sign in to comment.