* Set whether or not to call consumer.commitSync() or commitAsync() when the
* container is responsible for commits. Default true. See
* https://github.com/spring-projects/spring-kafka/issues/62 At the time of
* writing, async commits are not entirely reliable.
* @param syncCommits true to use commitSync().
*/
public void setSyncCommits(boolean syncCommits) {
this.syncCommits = syncCommits;
}