EventHubSequenceToken
class
Namespace: Orleans.Streaming.EventHubs
Event Hub messages consist of a batch of application layer events, so EventHub tokens contain three pieces of information. EventHubOffset - this is a unique value per partition that is used to start reading from this message in the partition. SequenceNumber - EventHub sequence numbers are unique ordered message IDs for messages within a partition. The SequenceNumber is required for uniqueness and ordering of EventHub messages within a partition. event Index - Since each EventHub message may contain more than one application layer event, this value indicates which application layer event this token is for, within an EventHub message. It is required for uniqueness and ordering of application layer events within an EventHub message.
[Orleans.GenerateSerializer]public class EventHubSequenceToken : EventSequenceToken, IEventHubPartitionLocationConstructors
EventHubSequenceTokenInitializes a new instance of theEventHubSequenceTokenclass.EventHubSequenceToken(string, long, int)Initializes a new instance of theEventHubSequenceTokenclass.
Properties
EventHubOffsetOffset of the message within an EventHub partition
Methods
ToStringReturns a string that represents the current object.
