Package com.tangosol.net
Interface NamedBlockingDeque<E>
- Type Parameters:
E
- the type of values in the queue
- All Superinterfaces:
AutoCloseable
,BlockingDeque<E>
,BlockingQueue<E>
,Collection<E>
,Deque<E>
,Iterable<E>
,NamedBlockingQueue<E>
,NamedCollection
,NamedDeque<E>
,NamedQueue<E>
,ObservableCollection<E>
,Queue<E>
,Releasable
,SequencedCollection<E>
public interface NamedBlockingDeque<E>
extends NamedBlockingQueue<E>, NamedDeque<E>, BlockingDeque<E>
A
BlockingDeque
based data-structure that manages values across one or
more processes. Values are typically managed in memory.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.net.NamedCollection
NamedCollection.Option
-
Method Summary
Modifier and TypeMethodDescriptionlong
Inserts the specified element at the front of thisNamedBlockingDeque
, waiting up to the specified wait time if necessary for space to become available.long
prependFirst
(E e) Inserts the specified element at the front of thisNamedBlockingDeque
, waiting if necessary for space to become available.Methods inherited from interface java.util.concurrent.BlockingDeque
add, addFirst, addLast, contains, element, iterator, offer, offer, offerFirst, offerFirst, offerLast, offerLast, peek, poll, poll, pollFirst, pollLast, push, put, putFirst, putLast, remove, remove, removeFirstOccurrence, removeLastOccurrence, size, take, takeFirst, takeLast
Methods inherited from interface java.util.concurrent.BlockingQueue
drainTo, drainTo, remainingCapacity
Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
Methods inherited from interface java.util.Deque
add, addAll, contains, descendingIterator, getFirst, getLast, offer, peekFirst, peekLast, pollFirst, pollLast, pop, remove, removeFirst, removeLast, reversed
Methods inherited from interface com.tangosol.net.NamedBlockingQueue
append, appendLast
Methods inherited from interface com.tangosol.net.NamedCollection
destroy, getName, isDestroyed
Methods inherited from interface com.tangosol.net.NamedDeque
getService, prepend
Methods inherited from interface com.tangosol.net.NamedQueue
append, getQueueNameHash, getQueueStatistics, isActive, isReady
Methods inherited from interface com.tangosol.util.ObservableCollection
addListener, addListener, removeListener, removeListener
Methods inherited from interface com.tangosol.net.Releasable
close, isReleased, release
-
Method Details
-
prepend
Inserts the specified element at the front of thisNamedBlockingDeque
, waiting up to the specified wait time if necessary for space to become available.- Parameters:
e
- the element to inserttimeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameter- Returns:
- the identifier for the inserted element, or
-1L
if the element could not be inserted - Throws:
InterruptedException
- if interrupted while waiting
-
prependFirst
Inserts the specified element at the front of thisNamedBlockingDeque
, waiting if necessary for space to become available.- Parameters:
e
- the element to insert- Returns:
- the identifier for the inserted element, or
-1L
if the element could not be inserted - Throws:
InterruptedException
- if interrupted while waiting
-