RdKafka\Conf::setOffsetCommitCb

(PECL rdkafka >= 3.1.0, librdkafka >= 0.9)

RdKafka\Conf::setOffsetCommitCbSet offset commit callback

Description

public RdKafka\Conf::setOffsetCommitCb ( callable $callback ) : void

Set offset commit callback for use with consumer groups

Parameters

callback (callable)

A callable with the following signature:

<?php
/**
 * @param object $kafka
 * @param int $err
 * @param array $partitions
 */
function ($kafka$err$partitions);

Return Values

Returns no value.