ResultBuffer class
Batches results and flushes on size / time / end of run.
Constructors
- ResultBuffer(Session session)
- Builds the buffer for a session.
Properties
- consecutiveBatchFailures → int
-
Consecutive transport failures, for the soft-disable circuit.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- pendingCount → int
-
How many results are still buffered.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → Session
-
The session this buffer reports into.
final
Methods
-
enqueue(
PendingResult item) → void - Buffers a bound result; unbound results are dropped.
-
flush(
) → Future< void> - Uploads buffered results now.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetFailureCircuit(
) → void - Resets the soft-disable circuit. Tests use it to re-arm a session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited