The producer adding an element to the queue will wait for a consumer in another thread.
在队列中加入一个元素的生产者会等待另一个线程的消费者。
While the queue is unbound in size, enabling adds to return immediately, one cannot take an element from the queue until the delay time has expired.
因为队列的大小没有界限,使得添加可以立即返回,但是在延迟时间过去之前,不能从队列中取出元素。
When that consumer is available, the element is passed directly between consumer and producer, never literally getting added to the blocking queue.
当这个消费者出现时,这个元素就直接在消费者和生产者之间传递,永远不会加入到阻塞队列中。
The traditional way to process an element on a queue in SQL is to fetch the element in a first step.
在SQL中,处理队列上一个元素的传统方法是在第一步取这个元素。
The remove and poll methods are both for removing the first element (head) of the queue.
remove和poll方法都是从队列中删除第一个元素(head)。
The last two methods, element and peek , are for querying the element at the head of the queue.
后两个方法element和peek用于在队列的头部查询元素。
Instead of adding and removing elements from the queue immediately, the thread performing the operation blocks until space or an element is available.
不是立即从队列中添加或者删除元素,线程执行操作阻塞,直到有空间或者元素可用。
Replaces the queue of all matched element with this new queue (the array of functions).
将匹配元素的队列用新的一个队列来代替(函数数组)。
The queue when no element, called the empty queue.
队列中没有元素时,称为空队列。
The queue when no element, called the empty queue.
队列中没有元素时,称为空队列。
应用推荐