Table of Contents

Interface IKafkaConsumerCaughtUpCallback

Namespace
Silverback.Messaging.Broker.Callbacks
Assembly
Silverback.Integration.Kafka.dll

Declares the OnConsumerCaughtUpAsync(IKafkaConsumer) event handler.

public interface IKafkaConsumerCaughtUpCallback : IBrokerClientCallback

Remarks

The CatchUpMode must be set, otherwise the consumer doesn't track whether it's caught up.

Methods

OnConsumerCaughtUpAsync(IKafkaConsumer)

Called when the consumer is caught up, meaning that every partition assigned to it reached its end and all its messages are processed.

Task OnConsumerCaughtUpAsync(IKafkaConsumer consumer)

Parameters

consumer IKafkaConsumer

The related consumer.

Returns

Task

A Task representing the asynchronous operation.

Remarks

The callback is invoked once per connection: a reconnect starts a new catch-up. In Disconnect mode, the consumer is disconnected after the callback returns.