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

Throw QueueFullException instead of blocking.

BLOCK

Block the caller until space is available.

Created with MrDocs