Skip to content

Commit

Permalink
ConsumerSetting: Add group instance id setter (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
def1ne authored and ennru committed Dec 2, 2019
1 parent 5e3b1b8 commit b12496f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/scala/akka/kafka/ConsumerSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ class ConsumerSettings[K, V] @InternalApi private[kafka] (
def withGroupId(groupId: String): ConsumerSettings[K, V] =
withProperty(ConsumerConfig.GROUP_ID_CONFIG, groupId)

/**
* An id string that marks consumer as a unique static member of the consumer group.
*/
def withGroupInstanceId(groupInstanceId: String): ConsumerSettings[K, V] =
withProperty(ConsumerConfig.GROUP_INSTANCE_ID_CONFIG, groupInstanceId)

/**
* Scala API:
* The raw properties of the kafka-clients driver, see constants in
Expand Down

0 comments on commit b12496f

Please sign in to comment.