public interface BlockingQueue extends Queue, java.util.concurrent.BlockingQueue
Title: Dataspace Framework
Description: Blocking Queue collection interface
BlockingQueue
javadoc.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(java.util.Collection c)
If
c is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side. |
boolean |
containsAll(java.util.Collection c)
If
c is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side. |
int |
drainTo(java.util.Collection c)
If
c is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side. |
int |
drainTo(java.util.Collection c,
int maxElements)
The same as
drainTo(Collection) but drains maximum maxElements . |
java.lang.Object |
pollLast(long timeout,
java.util.concurrent.TimeUnit unit)
Retrieves and removes the last added element of this queue, waiting up to the
specified wait time if necessary for an element to become available.
|
boolean |
removeAll(java.util.Collection c)
If
c is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side. |
boolean |
retainAll(java.util.Collection c)
If
c is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side. |
java.lang.Object |
takeLast()
Retrieves and removes the last added element of this queue, waiting if necessary
until an element becomes available.
|
addRow, addRows, drainRowsTo, drainRowsTo, drainToMap, drainToQueue, drainToRowSet, drainToTable, elementLast, fromMap, fromQueue, fromRowSet, fromTable, peekLast, pollLast, removeLast, toMap, toMapCollection, toQueue, toQueueCollection, toRowSet, toTableCollection
getCollectionName, getCollectionType, getMemoryModel, listTriggers
add, contains, offer, offer, poll, put, remainingCapacity, remove, take
int drainTo(java.util.Collection c)
c
is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side.
NOTE: If any exception occurred during reading from source collection or inserting into
target collection exception is throws. No rollback is done. Engine guarantees that no data will be lost,
i.e. if element is dropped from source collection then it is exists in target collection.
See BlockingQueue.drainTo(Collection)
drainTo
in interface java.util.concurrent.BlockingQueue
int drainTo(java.util.Collection c, int maxElements)
drainTo
in interface java.util.concurrent.BlockingQueue
boolean containsAll(java.util.Collection c)
c
is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side.
NOTE: If any exception occurred during reading from source collection or inserting into
target collection exception is throws. No rollback is done.
See Collection.containsAll(Collection)
containsAll
in interface java.util.Collection
boolean addAll(java.util.Collection c)
c
is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side.
NOTE: If any exception occurred during reading from source collection or inserting into
target collection exception is throws. No rollback is done.
See Collection.addAll(Collection)
addAll
in interface java.util.Collection
boolean removeAll(java.util.Collection c)
c
is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side.
NOTE: If any exception occurred during reading from source collection or inserting into
target collection exception is throws. No rollback is done.
See Collection.removeAll(Collection)
removeAll
in interface java.util.Collection
boolean retainAll(java.util.Collection c)
c
is instance of BlockingQueueProxy
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side.
NOTE: If any exception occurred during reading from source collection or inserting into
target collection exception is throws. No rollback is done.
See Collection.retainAll(Collection)
retainAll
in interface java.util.Collection
java.lang.Object takeLast() throws java.lang.InterruptedException
java.lang.InterruptedException
- if interrupted while waitingjava.lang.Object pollLast(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
timeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameternull
if the
specified waiting time elapses before an element is availablejava.lang.InterruptedException
- if interrupted while waitingCopyright © 2015-2024 StreamScape Technologies. All rights reserved.