View Source EventStreamex.Operators.Queue (EventStreamex v1.1.0)
Handle the queue of operators to process.
Every event received is dispatched to operators (EventStreamex.Operators.Operator
),
and executed sequentially to keep ordenancing.
Every time an event is received, a task is added to the queue of events for each operator listening for this event. And everytime a an operator task is finished, it is removed from the queue.
A queue item is a tuple containing the operator module and the event to process.
The queue is handled internally. You should not use it directly.
Summary
Functions
Returns a specification to start this module under a supervisor.
Adds another item to the queue
Retrieves the full queue
Retrieves the current task
Removes all items from the queue.
Tells the queue that the current item is finished.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Adds another item to the queue
Retrieves the full queue
Retrieves the current task
Removes all items from the queue.
Should only be used for testing purposes
Tells the queue that the current item is finished.