Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compatibility with kafka-clients 3.7.0, by using local version of NoOpConsumerRebalanceListener #416

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import com.evolutiongaming.catshelper.CatsHelper._
import com.evolutiongaming.catshelper._
import com.evolutiongaming.skafka.Converters._
import com.evolutiongaming.skafka.consumer.ConsumerConverters._
import org.apache.kafka.clients.consumer.internals.NoOpConsumerRebalanceListener
import org.apache.kafka.clients.consumer.{
OffsetCommitCallback,
Consumer => ConsumerJ,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.evolutiongaming.skafka.consumer

import org.apache.kafka.clients.consumer.ConsumerRebalanceListener
import org.apache.kafka.common.TopicPartition

import java.util

/** Local version of NoOpConsumerRebalanceListener, because it was removed in kafka-clients 3.7.0
*/
private[skafka] final class NoOpConsumerRebalanceListener extends ConsumerRebalanceListener {

override def onPartitionsRevoked(partitions: util.Collection[TopicPartition]): Unit = ()

override def onPartitionsAssigned(partitions: util.Collection[TopicPartition]): Unit = ()
}
Loading