Class Offset
Used in IEventsByTagQuery implementations to signal to Akka.Persistence.Query where to begin and end event by tag queries.
For concrete implementations, see Sequence(long) and NoOffset().
Implements
Inherited Members
Namespace: Akka.Persistence.Query
Assembly: Akka.Persistence.Query.dll
Syntax
public abstract class Offset : IComparable<Offset>
Methods
| Edit this page View SourceCompareTo(Offset)
Used to compare to other Offset implementations.
Declaration
public abstract int CompareTo(Offset other)
Parameters
Type | Name | Description |
---|---|---|
Offset | other | The other offset to compare. |
Returns
Type | Description |
---|---|
int |
NoOffset()
Used when retrieving all events.
Declaration
public static Offset NoOffset()
Returns
Type | Description |
---|---|
Offset |
Sequence(long)
Factory to create an offset of type Sequence
Declaration
public static Offset Sequence(long value)
Parameters
Type | Name | Description |
---|---|---|
long | value |
Returns
Type | Description |
---|---|
Offset |
TimeBasedUuid(Guid)
Factory to create an offset of type TimeBasedUuid(Guid)
Declaration
public static Offset TimeBasedUuid(Guid value)
Parameters
Type | Name | Description |
---|---|---|
Guid | value |
Returns
Type | Description |
---|---|
Offset |
ToString()
Used to log offset's value
Declaration
public override abstract string ToString()
Returns
Type | Description |
---|---|
string |