StreamPosition class

A class referring to an EventRecord's position within a stream.

Inheritance

Constructors

StreamPosition.checked(int value)
Constructs a new StreamPosition from given value.
factory
StreamPosition.fromInt64(Int64 value)
Creates a StreamPosition from a Int64.
factory
StreamPosition.fromRevision(StreamRevision revision)
Creates a StreamPosition from a StreamRevision.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → Int64
The commit position of the record
final

Methods

compareTo(StreamPosition other) int
Compare this to other StreamPosition
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInt() int
Get value as int
toRevision() StreamRevision
Get StreamRevision from this StreamPosition
toString() String
A string representation of this object.
override

Operators

operator +(int delta) StreamPosition
operator -(int delta) StreamPosition
operator <(StreamPosition p2) bool
Compares whether this < p2.
operator <=(StreamPosition p2) bool
Compares whether this <= p2.
operator ==(Object other) bool
The equality operator.
override
operator >(StreamPosition p2) bool
Compares whether this > p2.
operator >=(StreamPosition p2) bool
Compares whether this >= p2.

Static Properties

end StreamPosition
The end of a stream. Use this when reading a stream backwards, or subscribing live to a stream.
getter/setter pair
start StreamPosition
The beginning (i.e., the first event) of a stream.
getter/setter pair