TracomPersistentQueue class
A PersistentQueue
stores data via push and clears it via flush calls.
Properties
-
filename
↔ String
-
Permanent storage extensionless destination filename.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
length
→ Future<int>
-
Actual queue length after buffered operations go through.
no setter
-
nickname
↔ String
-
Optional queue name/alias for debug purposes, defaults to filename.
getter/setter pair
-
ready
→ Future<void>
-
Flag indicating queue readiness after initial reload event.
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear()
→ Future<List>
-
Clear the list and return queued items.
-
destroy()
→ Future<void>
-
Dispose all queue resources.
-
flush([FutureOr onFlush(List)?])
→ Future<void>
-
Schedule a flush instruction to happen after current task buffer clears.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
push(dynamic item)
→ Future<void>
-
Push an
item
to the end of the PersistentQueue
after buffer clears.
-
toList()
→ Future<List>
-
Preview a List of currently buffered items, without any dequeuing.
-
toString()
→ String
-
A string representation of this object.
inherited
Static Properties
-
queues
→ Map
-
Constructs a new
PersistentQueue
or returns a previously cached one.
final