Edit

Share via


StreamSequenceToken Class

Definition

Handle representing stream sequence number/token. Consumer may subscribe to the stream while specifying the start of the subscription sequence token. That means that the stream infrastructure will deliver stream events starting from this sequence token.

[System.Serializable]
public abstract class StreamSequenceToken : IComparable<Orleans.Streams.StreamSequenceToken>, IEquatable<Orleans.Streams.StreamSequenceToken>
[System.Serializable]
[Orleans.GenerateSerializer]
public abstract class StreamSequenceToken : IComparable<Orleans.Streams.StreamSequenceToken>, IEquatable<Orleans.Streams.StreamSequenceToken>
[<System.Serializable>]
type StreamSequenceToken = class
    interface IEquatable<StreamSequenceToken>
    interface IComparable<StreamSequenceToken>
[<System.Serializable>]
[<Orleans.GenerateSerializer>]
type StreamSequenceToken = class
    interface IEquatable<StreamSequenceToken>
    interface IComparable<StreamSequenceToken>
Public MustInherit Class StreamSequenceToken
Implements IComparable(Of StreamSequenceToken), IEquatable(Of StreamSequenceToken)
Inheritance
StreamSequenceToken
Derived
Attributes
Implements

Constructors

StreamSequenceToken()

Properties

EventIndex

Gets the number of events in batch prior to this event

SequenceNumber

Gets the number of event batches in stream prior to this event batch

Methods

CompareTo(StreamSequenceToken)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Equals(StreamSequenceToken)

Indicates whether the current object is equal to another object of the same type.

Extension Methods

Newer(StreamSequenceToken, StreamSequenceToken)

Returns true if the first token is newer than the second token.

Older(StreamSequenceToken, StreamSequenceToken)

Returns true if the first token is older than the second token.

Applies to