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
* Consumes the first message available in a given topic, deserializing it as a String.
219
219
*
220
-
* Only the messsage that is returned is committed if config.autoCommit is false. If config.autoCommit is true then all messages that were polled will be committed.
220
+
* Only the messsage that is returned is committed if autoCommit is false.
221
+
* If autoCommit is true then all messages that were polled will be committed.
221
222
*
222
223
* @paramtopic the topic to consume a message from
224
+
* @paramautoCommit if false, only the offset for the consumed message will be commited.
225
+
* if true, the offset for the last polled message will be committed instead.
226
+
* Defaulted to false.
223
227
* @paramconfig an implicit [[EmbeddedKafkaConfig]]
224
228
* @paramdeserializer an implicit [[org.apache.kafka.common.serialization.Deserializer]] for the type [[T]]
225
229
* @return the first message consumed from the given topic, with a type [[T]]
0 commit comments