You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| autocommit |`boolean \| number`|`true`| Whether to autocommit consumed messages.<br/><br/> If it is `true`, then messages are committed immediately.<br/><br/> If it is a number, it specifies how often offsets will be committed. Only the last offset for a topic-partition is committed.<br/><br/>If set to `false`, then each message read from the stream will have a `commit` method which should be used to manually commit offsets. |
32
32
| minBytes |`number`|`1`| Minimum amount of data the brokers should return. The value might not be respected by Kafka. |
@@ -35,10 +35,13 @@ Options:
35
35
| isolationLevel | string |`READ_COMMITTED`| Kind of isolation applied to fetch requests. It can be used to only read producers-committed messages.<br/><br/> The valid values are defined in the `FetchIsolationLevels` enumeration. |
36
36
| deserializers |`Deserializers<Key, Value, HeaderKey, HeaderValue>`|| Object that specifies which deserialisers to use.<br/><br/>The object should only contain one or more of the `key`, `value`, `headerKey` and `headerValue` properties. |
37
37
| highWaterMark |`number`|`1024`| The maximum amount of messages to store in memory before delaying fetch requests. Note that this severely impacts both performance at the cost of memory use. |
38
-
| sessionTimeout |`number`| 1 minute | Amount of time in milliseconds to wait for a consumer to send the heartbeat before considering it down.<br/><br/> This is only relevant when Kafka creates a new group. |
39
-
| rebalanceTimeout |`number`| 2 minutes | Amount of time in milliseconds to wait for a consumer to confirm the rebalancing before considering it down.<br/><br/> This is only relevant when Kafka creates a new group. |
40
-
| heartbeatInterval |`number`| 3 seconds | Interval in milliseconds between heartbeats. |
41
-
| protocols |`GroupProtocolSubscription[]`|`roundrobin`, version `1`| Protocols used by this consumer group.<br/><br/> Each protocol must be an object specifying the `name`, `version` and optionally `metadata` properties. |
38
+
| sessionTimeout |`number`| 1 minute | Amount of time in milliseconds to wait for a consumer to send the heartbeat before considering it down.<br/><br/> This is only relevant when Kafka creates a new group.<br/><br/> Not supported for `groupProtocol=consumer`, instead it is set with broker configuration property `group.consumer.session.timeout.ms`. |
39
+
| rebalanceTimeout |`number`| 2 minutes | Amount of time in milliseconds to wait for a consumer to confirm the rebalancing before considering it down.<br/><br/> This is only relevant when Kafka creates a new group. |
40
+
| heartbeatInterval |`number`| 3 seconds | Interval in milliseconds between heartbeats.<br/><br/> Not supported for `groupProtocol=consumer`, instead it is set with the broker configuration property `group.consumer.heartbeat.interval`. |
41
+
| groupProtocol |`'classic' \| 'consumer'`|`'classic'`| Group protocol to use. Use `'classic'` for the original consumer group protocol and `'consumer'` for the new protocol introduced in [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol).<br/><br/> The `'consumer'` protocol provides server-side partition assignment and incremental rebalancing behavior. |
42
+
| groupRemoteAssignor |`string`|`null`| Server-side assignor to use for `groupProtocol=consumer`. Keep it unset to let the server select a suitable assignor for the group. Available assignors: `'uniform'` or `'range'`. |
43
+
| protocols |`GroupProtocolSubscription[]`|`roundrobin`, version `1`| Protocols used by this consumer group.<br/><br/> Each protocol must be an object specifying the `name`, `version` and optionally `metadata` properties. <br/><br/> Not supported for `groupProtocol=consumer`. |
44
+
| partitionAssigner |`GroupPartitionsAssigner`|| Client-side partition assignment strategy.<br/><br/> Not supported for `groupProtocol=consumer`, use `groupRemoteAssignor` instead. |
42
45
43
46
It also supports all the constructor options of `Base`.
44
47
@@ -170,6 +173,8 @@ Joins (and creates if necessary) a consumer group.
170
173
171
174
It returns the group member ID for this consumer.
172
175
176
+
This method is no-op for `groupProtocol=consumer`.
177
+
173
178
Options:
174
179
175
180
| Property | Type | Default | Description |
@@ -187,6 +192,8 @@ If `force` is not `true`, then the method will throw an error if any `MessagesSt
187
192
188
193
The return value is `void`.
189
194
195
+
This method is no-op for `groupProtocol=consumer`.
196
+
190
197
## FAQs
191
198
192
199
### My consumer is not receiving any message when the application restarts
0 commit comments