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(Int64) and NoOffset().
Implements
Inherited Members
Namespace: Akka.Persistence.Query
Assembly: Akka.Persistence.Query.dll
Syntax
public abstract class Offset : IComparable<Offset>
Methods
| Improve this Doc 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 |
---|---|
Int32 |
NoOffset()
Used when retrieving all events.
Declaration
public static Offset NoOffset()
Returns
Type | Description |
---|---|
Offset |
Sequence(Int64)
Factory to create an offset of type Sequence
Declaration
public static Offset Sequence(long value)
Parameters
Type | Name | Description |
---|---|---|
Int64 | 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 abstract override string ToString()
Returns
Type | Description |
---|---|
String |