lucee.Componentmodels.ConcurrentLinkedQueue
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com ---- A concurrent non-blocking linked queue (FIFO) modeled after the Java counterpart.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
jQueue
The native java ConcurrentLinkedQueue.
|
true
|
false
|
Constructor Summary | |
---|---|
init([any list='[runtime expression]'])
Constructor. |
Method Summary | |
---|---|
ConcurrentLinkedQueue
|
add(any element)
Inserts the specified element at the tail of this queue. |
ConcurrentLinkedQueue
|
addAll(array collection)
Appends all of the elements in the specified collection to the end of this queue, in the order that they are returned by the specified collection's iterator. |
ConcurrentLinkedQueue
|
clear()
Removes all of the elements from this queue. |
ConcurrentLinkedQueue
|
clone()
Creates and returns a copy of this object. |
boolean
|
containsAll(array collection)
Returns true if this collection contains all of the elements in the specified collection. |
string
|
getJQueue()
|
boolean
|
has(any element)
Returns true if this queue contains the specified element. |
boolean
|
has(any element)
Returns true if this queue contains the specified element. |
boolean
|
isEmpty()
Returns true if this queue contains no elements. |
any
|
iterator()
Returns an iterator over the elements in this queue in proper sequence. |
ConcurrentLinkedQueue
|
offer(any element)
Inserts the specified element at the tail of this queue. |
any
|
parallelStream()
Returns a possibly parallel Stream with this collection as its source. |
any
|
peek()
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty. |
any
|
poll()
Retrieves and removes the head of this queue, or returns null if this queue is empty. |
boolean
|
remove([any element])
Retrieves and removes the head of this queue. |
boolean
|
removeAll(array collection)
Removes all of this collection's elements that are also contained in the specified collection (optional operation). |
boolean
|
retainAll(array collection)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
any
|
setJQueue(any jQueue)
|
numeric
|
size()
Returns the number of elements in this queue. |
any
|
spliterator()
Returns a Spliterator over the elements in this queue. |
any
|
stream()
Returns a sequential Stream with this collection as its source. |
array
|
toArray([boolean native='true'])
Returns an array containing all of the elements in this queue, in proper sequence. |
string
|
toString()
Returns a string representation of this collection. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
list
- trueProperty Detail |
---|
The native java ConcurrentLinkedQueue
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Inserts the specified element at the tail of this queue.
element
- The element to add to the queueAppends all of the elements in the specified collection to the end of this queue, in the order that they are returned by the specified collection's iterator.
collection
- An array collection to add into the queue as elementsRemoves all of the elements from this queue. The queue will be empty after this call returns.
Creates and returns a copy of this object.
Returns true if this collection contains all of the elements in the specified collection.
collection
- Collection to be checked for containment in this collectionReturns true if this queue contains the specified element.
element
Returns true if this queue contains the specified element.
element
Returns true if this queue contains no elements.
Returns an iterator over the elements in this queue in proper sequence.
Inserts the specified element at the tail of this queue.
element
- The element to add at the tailReturns a possibly parallel Stream with this collection as its source. It is allowable for this method to return a sequential stream.
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
Retrieves and removes the head of this queue, or returns null if this queue is empty.
Retrieves and removes the head of this queue. This method differs from poll only in that it throws an exception if this queue is empty. If you pass in the `element` argument, then we will try to remove the element from the queue instead.
element
- If passed, it will remove the element.Removes all of this collection's elements that are also contained in the specified collection (optional operation).
collection
- The array of elements to removeRetains only the elements in this collection that are contained in the specified collection (optional operation).
collection
- The array of elements to retainjQueue
Returns the number of elements in this queue.
Returns a Spliterator over the elements in this queue.
Returns a sequential Stream with this collection as its source.
Returns an array containing all of the elements in this queue, in proper sequence.
native
- If true, then it returns a native CFML array, else a Java Array CollectionReturns a string representation of this collection. The string representation consists of a list of the collection's elements in the order they are returned by its iterator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). Elements are converted to strings as by String.valueOf(Object).