Class Sequence
Corresponds to an ordered sequence number for the events.Note that the corresponding
offset of each event is provided in the EventEnvelope,
which makes it possible to resume the stream at a later point from a given offset.
The offset
is exclusive, i.e.the event with the exact same sequence number will not be included
in the returned stream. This means that you can use the offset that is returned in EventEnvelope
as the offset
parameter in a subsequent query.
Assembly: Akka.Persistence.Query.dll
Syntax
public sealed class Sequence : Offset, IComparable<Offset>, IComparable<Sequence>
Constructors
|
Improve this Doc
View Source
Sequence(Int64)
Initializes a new instance of the Sequence class.
Declaration
public Sequence(long value)
Parameters
Type |
Name |
Description |
Int64 |
value |
|
Properties
|
Improve this Doc
View Source
Value
Declaration
public long Value { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompareTo(Offset)
Declaration
public override int CompareTo(Offset other)
Parameters
Type |
Name |
Description |
Offset |
other |
|
Returns
Overrides
|
Improve this Doc
View Source
CompareTo(Sequence)
Declaration
public int CompareTo(Sequence other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods