Class KafkaOffsetStoreConsumerBehavior
- Namespace
- Silverback.Messaging.Consuming.KafkaOffsetStore
- Assembly
- Silverback.Integration.Kafka.dll
Creates the KafkaOffsetStoreScope and ensures that the offsets are being stored to the client side offset store (if configured).
public class KafkaOffsetStoreConsumerBehavior : IConsumerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
KafkaOffsetStoreConsumerBehavior
- Implements
- Inherited Members
Constructors
KafkaOffsetStoreConsumerBehavior()
public KafkaOffsetStoreConsumerBehavior()
Properties
SortIndex
Gets the sort index.
public int SortIndex { get; }
Property Value
Methods
HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being consumed.
public ValueTask HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
contextConsumerPipelineContextThe context that is passed along the behaviors pipeline.
nextConsumerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.