Class KafkaOffsetStoreScope
- Namespace
- Silverback.Messaging.Consuming.KafkaOffsetStore
- Assembly
- Silverback.Integration.Kafka.dll
The scope of the client side offset store. A scope is created per each consume cycle and is used to atomically store the processed offsets.
public sealed class KafkaOffsetStoreScope
- Inheritance
-
KafkaOffsetStoreScope
- Inherited Members
Constructors
KafkaOffsetStoreScope(IKafkaOffsetStore, ConsumerPipelineContext)
Initializes a new instance of the KafkaOffsetStoreScope class.
public KafkaOffsetStoreScope(IKafkaOffsetStore offsetStore, ConsumerPipelineContext context)
Parameters
offsetStoreIKafkaOffsetStoreThe IKafkaOffsetStore.
contextConsumerPipelineContextThe ISilverbackContext.
Properties
SilverbackContext
Gets the ISilverbackContext.
public ISilverbackContext SilverbackContext { get; }
Property Value
Methods
StoreOffsetsAsync()
Store all offsets that have been processed in this scope.
public Task StoreOffsetsAsync()