InMemoryCursorStore class final
A CursorStore that keeps the cursor in memory only.
The default when no store is injected. It makes the cursor survive reconnects within one process, which is what keeps a relay hiccup from losing events, but not a restart — for that the caller must supply a durable implementation.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
) → Future< void> -
Discards the stored cursor so the next subscription starts from the live
edge.
override
-
find(
) → Future< int?> -
Returns the stored cursor, or
nullwhen none has been stored yet (a first run, or after delete).override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
int cursor) → Future< void> -
Stores
cursoras the latest processed sequence number.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited