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
|
Edit this page
View Source
Sequence(long)
Initializes a new instance of the Sequence class.
Declaration
public Sequence(long value)
Parameters
Type |
Name |
Description |
long |
value |
|
Properties
|
Edit this page
View Source
Value
Declaration
public long Value { get; }
Property Value
Methods
|
Edit this page
View Source
CompareTo(Offset)
Used to compare to other Offset implementations.
Declaration
public override int CompareTo(Offset other)
Parameters
Type |
Name |
Description |
Offset |
other |
The other offset to compare.
|
Returns
Overrides
|
Edit this page
View Source
CompareTo(Sequence)
Declaration
public int CompareTo(Sequence other)
Parameters
Returns
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
ToString()
Used to log offset's value
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods