TakeCommand<TEvent> class
The command consumes the next take events in a queue.
The returned future will complete when the needed count of events arrives.
- Inheritance
-
- Object
- CommandBase<
TEvent, List< TEvent> > - TakeCommand
Constructors
- TakeCommand(int take)
- Creates TakeCommand that consumes the next take events in a queue.
Properties
-
completer
→ Completer<
List< TEvent> > -
The completer manipulates the future returned by future.
finalinherited
-
future
→ Future<
List< TEvent> > -
Returns the future, which will be complete when the command conditions are met.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- take → int
-
How many events are to consume.
final
Methods
-
handle(
ListQueue< TEvent> eventQueue) → bool -
Handle available events.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
terminate(
) → void -
Completes the future with the TerminatedException that contains the
_buffer
as data.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited