java.lang.Object | |
↳ | com.rabbitmq.client.impl.SetQueue<T> |
A generic queue-like implementation (supporting operations addIfNotPresent
,
poll
, contains
, and isEmpty
)
which restricts a queue element to appear at most once.
If the element is already present addIfNotPresent(T)
returns false
.
null
.
Concurrent SemanticsPublic Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add an element to the back of the queue and return
true , or else return false . | |||||||||||
Remove all items from the queue.
| |||||||||||
Remove the head of the queue and return it.
| |||||||||||
Remove item from queue, if present.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Add an element to the back of the queue and return true
, or else return false
.
item | to add |
---|
true
if the element was added, false
if it is already present.
Remove all items from the queue.
true
if and only if item is in the queue.true
if and only if the queue is empty.Remove the head of the queue and return it.
null
if the queue is empty.
Remove item from queue, if present.
true
if and only if item was initially present and was removed.