Behaviours: sbroker_fair_queue, sbroker_queue.
Implements a head or tail drop queue.
sbroker_drop_queue
can be used as the sbroker_queue
module in a
sbroker
. Its argument is of the form:
{out | out_r, drop | drop_r, Max :: non_neg_integer() | infinity}The first element is
out
for a FIFO queue and out_r
for a LIFO queue. The
second element determines whether to drop from head drop
or drop from the
tail drop_r
when the queue is above the maximum size (third element).Generated by EDoc, Sep 29 2016, 17:17:28.