throttle_cb_callback

@brief Set throttle callback.

The throttle callback is used to forward broker throttle times to the application for Produce and Fetch (consume) requests.

Callbacks are triggered whenever a non-zero throttle time is returned by the broker, or when the throttle time drops back to zero.

An application must call rd_kafka_poll() or rd_kafka_consumer_poll() at regular intervals to serve queued callbacks.

@remark Requires broker version 0.9.0 or later.

extern (C) nothrow @nogc
alias throttle_cb_callback = void function
(,
const(char)* broker_name
,
int32_t broker_id
,,
void* opaque
)
nothrow @nogc

Meta