ReplaceBackpressureStrategy<Q, R> class
An implementation of BackpressureStrategy that has a job queue with size one, and discards the queue upon adding a new job.
Marble diagram to visualize timeline:
--a--b--c---d--e--f-----|
---------a-c-------d--f-|
- Inheritance
-
- Object
- BackpressureStrategy<
Q, R> - ReplaceBackpressureStrategy
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
queue
↔ BackpressureConfiguration<
Q, R> ? -
The next item in queue for execution.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
BackpressureConfiguration< Q, R> configuration) → Future -
Adds another job to the queue.
override
-
dispose(
) → Future -
Clears the queue and cleans up.
inherited
-
drop(
BackpressureConfiguration configuration) → void -
Drops the job item, completing it with an error.
inherited
-
hasNext(
) → bool -
Function that returns true if the back pressure strategy has a job in
queue.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
takeNext(
) → BackpressureConfiguration< Q, R> -
Function that returns the next job in queue.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited