A queue-join rule decides whether to place an order at the back of a best queue, given the state of the book; a queue-exit rule decides whether to cancel an order already resting, given the state of the book and the order’s place in its queue.
hf_queues.sweep.