Buffer<T> class
abstract
Used to implement the buffering strategy for a channel.
Constructors
- Buffer()
Properties
Methods
-
flush(
) → List< T?> -
Flushes all the messages in the buffer to a
List
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
T? message) → void - Used to put new message in the buffer. Note the Buffer can choose to not store the message (e.g. a dropping buffer can drop any new message exceeding a given limit).
-
take(
) → T? - Used to retrieve any buffered message. Note the behavior of this method has to be consistent with isEmpty.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited