ReadEventsResult class
An interface representing the result of a read operation.
Properties
-
events
→ Future<
Iterable< ResolvedEvent> > -
Get resolved events as list
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCompleted → bool
-
Check if operation has completed. Operation is completed when
all events are fetched with events or stream, or after
dispose is called.
no setter
- isOK → bool
-
Check if read result is OK
no setter
- isStreamNotFound → bool
-
Check if stream was not found
no setter
- nextExpectedStreamRevision → StreamRevision
-
The expected StreamRevision on next write operation.
Returns StreamRevision.none until stream isCompleted.
no setter
- position → LogPosition
-
Get LogPosition after operation isCompleted.
Returns LogPosition.end until stream isCompleted.
no setter
- progress → StreamState
-
Get StreamState progress
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → ReadState
-
The StreamState after the operation.
no setter
-
stream
→ Stream<
ResolvedEvent> -
Get resolved events as single-subscriber stream
no setter
- streamId → String
-
Get StreamState.streamId
no setter
Methods
-
asBroadcastStream(
) → Stream< ResolvedEvent> - Get resolved events as broadcast stream
-
dispose(
) → Future< void> - Cancel connection with server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited