Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Offset
    Sequence
    Implements
    IComparable<Offset>
    IComparable<Sequence>
    Inherited Members
    Offset.NoOffset()
    Offset.Sequence(long)
    Offset.TimeBasedUuid(Guid)
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Persistence.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
    Type Description
    long

    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
    Type Description
    int
    Overrides
    Offset.CompareTo(Offset)
    | Edit this page View Source

    CompareTo(Sequence)

    Declaration
    public int CompareTo(Sequence other)
    Parameters
    Type Name Description
    Sequence other
    Returns
    Type Description
    int
    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Used to log offset's value

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    Offset.ToString()

    Implements

    IComparable<T>
    IComparable<T>

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET