Behavior of a queue when an item is added while the queue is full.
Synopsis
Declared in <folly/executors/task_queue/BlockingQueue.h>
enum class QueueBehaviorIfFull : int;
Description
Some queue implementations (for example, LifoSemMPMCQueue or PriorityLifoSemMPMCQueue) support both blocking (BLOCK) and non‐blocking (THROW) behaviors.
Members
Name |
Description |
|
Throw QueueFullException instead of blocking. |
|
Block the caller until space is available. |
Created with MrDocs