EventHubSequenceTokenV2 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
[System.Serializable]
public class EventHubSequenceTokenV2 : Orleans.ServiceBus.Providers.EventHubSequenceToken
[<System.Serializable>]
type EventHubSequenceTokenV2 = class
inherit EventHubSequenceToken
Public Class EventHubSequenceTokenV2
Inherits EventHubSequenceToken
- Inheritance
- Attributes
Constructors
EventHubSequenceTokenV2(String, Int64, Int32) |
Constructor |
Properties
EventHubOffset |
Offset of the message within an EventHub partition (Inherited from EventHubSequenceToken) |
EventIndex |
Gets the number of events in batch prior to this event (Inherited from EventSequenceToken) |
SequenceNumber |
Gets the number of event batches in stream prior to this event batch (Inherited from EventSequenceToken) |
Methods
CompareTo(StreamSequenceToken) |
Compares the current object with another object of the same type. (Inherited from EventSequenceToken) |
CreateSequenceTokenForEvent(Int32) |
Creates a sequence token for a specific event in the current batch. (Inherited from EventSequenceToken) |
DeepCopy(Object, ICopyContext) |
Create a deep copy of the token. |
Deserialize(Type, IDeserializationContext) |
Deserializes an event sequence token |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from EventSequenceToken) |
Equals(StreamSequenceToken) |
Indicates whether the current object is equal to another object of the same type. (Inherited from EventSequenceToken) |
GetHashCode() |
GetHashCode method for current EventSequenceToken (Inherited from EventSequenceToken) |
Serialize(Object, ISerializationContext, Type) |
Serialize the event sequence token. |
ToString() |
Returns a string that represents the current object. (Inherited from EventHubSequenceToken) |
Extension Methods
Newer(StreamSequenceToken, StreamSequenceToken) |
Returns |
Older(StreamSequenceToken, StreamSequenceToken) |
Returns |