Class TimeBasedUuid
Corresponds to an ordered unique identifier of 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.
Inherited Members
Namespace: Akka.Persistence.Query
Assembly: Akka.Persistence.Query.dll
Syntax
public sealed class TimeBasedUuid : Offset, IComparable<Offset>, IComparable<TimeBasedUuid>
Constructors
| Edit this page View SourceTimeBasedUuid(Guid)
Initializes a new instance of the TimeBasedUuid class.
Declaration
public TimeBasedUuid(Guid value)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | value |
Properties
| Edit this page View SourceValue
Declaration
public Guid Value { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceCompareTo(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
| Edit this page View SourceCompareTo(TimeBasedUuid)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(TimeBasedUuid other)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeBasedUuid | other | An object to compare with this instance. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Used to log offset's value
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Edit this page